QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#259088#7756. Omniscia Spares Noneucup-team864#Compile Error//C++231.2kb2023-11-20 16:29:362023-11-20 16:29:37

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++)
      |                                              ^