QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#259088 | #7756. Omniscia Spares None | ucup-team864# | Compile Error | / | / | C++23 | 1.2kb | 2023-11-20 16:29:36 | 2023-11-20 16:29:37 |
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:30:21: error: expected unqualified-id before numeric constant 30 | rep(1, i, 8){ | ^ answer.code:7:30: note: in definition of macro ‘rep’ 7 | #define rep(i, a, b) for(int i = a; i < (b); i++) | ^ answer.code:30:21: error: expected ‘;’ before numeric constant 30 | rep(1, i, 8){ | ^ answer.code:7:30: note: in definition of macro ‘rep’ 7 | #define rep(i, a, b) for(int i = a; i < (b); i++) | ^ answer.code:30:24: error: ‘i’ was not declared in this scope 30 | rep(1, i, 8){ | ^ answer.code:7:34: note: in definition of macro ‘rep’ 7 | #define rep(i, a, b) for(int i = a; i < (b); i++) | ^ answer.code:7:44: error: expected ‘)’ before ‘;’ token 7 | #define rep(i, a, b) for(int i = a; i < (b); i++) | ~ ^ answer.code:30:17: note: in expansion of macro ‘rep’ 30 | rep(1, i, 8){ | ^~~ answer.code:30:21: error: lvalue required as increment operand 30 | rep(1, i, 8){ | ^ answer.code:7:46: note: in definition of macro ‘rep’ 7 | #define rep(i, a, b) for(int i = a; i < (b); i++) | ^