QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#768261 | #9227. Henry the Plumber | ucup-team1206 | Compile Error | / | / | C++20 | 1.5kb | 2024-11-21 07:37:58 | 2024-11-21 07:37:59 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void prtints(auto:55& ...)’: answer.code:16:52: error: expected ‘;’ before ‘}’ token 16 | void prtints(auto& ...ints) { (printf("%d", ints) )} | ^ | ; answer.code:16:38: error: parameter packs not expanded with ‘...’: 16 | void prtints(auto& ...ints) { (printf("%d", ints) )} | ~~~~~~~^~~~~~~~~~~~~~ answer.code:16:38: note: ‘ints’ answer.code: In function ‘void ints(auto:54& ...) [with auto:54 = {int, int, int}]’: answer.code:15:34: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 15 | void ints(auto& ...ints) { (scanf("%d", &ints), ...); } | ~~~~~^~~~~~~~~~~~~ answer.code:15:34: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] answer.code:15:34: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] answer.code: In function ‘void ints(auto:54& ...) [with auto:54 = {int, int}]’: answer.code:15:34: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] answer.code:15:34: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] answer.code: In function ‘int main()’: answer.code:56:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 56 | scanf("%d", &n); | ~~~~~^~~~~~~~~~