expects argument of type 'int'
时间: 2024-02-03 15:02:30 浏览: 141
这个错误是因为在函数调用时没有传递正确的参数类型。根据引用\[1\]中的解释,函数daynum需要三个整型参数year、month和day。所以在调用函数时,需要传入这三个整型参数。根据引用\[3\]中的代码,可以看到函数daynum的定义和实现。你需要确保在调用函数时传递正确的参数类型,比如int类型的参数。如果你遇到了这个错误,可以检查一下你的函数调用是否传递了正确的参数类型。
#### 引用[.reference_title]
- *1* *3* [warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int (*)(int, int....](https://blog.csdn.net/qq_38354320/article/details/108750379)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘time_t {aka long ...](https://blog.csdn.net/sinat_29315697/article/details/79788909)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文