QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#430478#8651. Table Tennisegypt_ioi2024_04#Compile Error//C++202.0kb2024-06-03 20:54:502024-06-03 20:54:51

Details

answer.code: In function ‘int32_t main()’:
answer.code:6:17: error: expected primary-expression before ‘for’
    6 | #define LOOP(n) for(int rp=0;rp<(n);rp++)
      |                 ^~~
answer.code:66:22: note: in expansion of macro ‘LOOP’
   66 |             if(m)m--,LOOP(j)E(i,rp);
      |                      ^~~~
answer.code:66:27: error: ‘j’ was not declared in this scope
   66 |             if(m)m--,LOOP(j)E(i,rp);
      |                           ^
answer.code:6:34: note: in definition of macro ‘LOOP’
    6 | #define LOOP(n) for(int rp=0;rp<(n);rp++)
      |                                  ^
answer.code:6:41: error: expected ‘;’ before ‘)’ token
    6 | #define LOOP(n) for(int rp=0;rp<(n);rp++)
      |                                         ^
answer.code:66:22: note: in expansion of macro ‘LOOP’
   66 |             if(m)m--,LOOP(j)E(i,rp);
      |                      ^~~~