QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#494631 | #8549. The Game | ZhangYiDe | Compile Error | / | / | C++98 | 587b | 2024-07-27 16:23:26 | 2024-07-27 16:23:26 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int main()’: answer.code:24:20: error: ISO C++ forbids declaration of ‘t’ with no type [-fpermissive] 24 | for (auto& t : p){ | ^ answer.code:24:24: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions] 24 | for (auto& t : p){ | ^ answer.code:24:24: error: forming reference to reference type ‘std::map<int, int>&’ answer.code:25:19: error: request for member ‘second’ in ‘t’, which is of non-class type ‘int’ 25 | if (t.second) | ^~~~~~ answer.code:26:26: error: request for member ‘second’ in ‘t’, which is of non-class type ‘int’ 26 | sum += t.second - 1; | ^~~~~~ answer.code:28:23: error: ‘puts’ was not declared in this scope 28 | if (sum == n) puts("Qingyu"); | ^~~~ answer.code:29:26: error: ‘puts’ was not declared in this scope 29 | else if(sum < n) puts("Kevin"); | ^~~~