QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#150064#5596. I Could Have WonZhangYiDeCompile Error//C++98884b2023-08-25 15:03:082023-08-25 15:03:09

Details

answer.code: In function ‘void solve()’:
answer.code:39:14: error: ‘it’ does not name a type; did you mean ‘int’?
   39 |     for(auto it:vec)
      |              ^~
      |              int
answer.code:40:23: error: expected ‘;’ before ‘}’ token
   40 |         cout<<it<<' ';
      |                       ^
      |                       ;
   41 | 
   42 | }
      | ~                      
answer.code:42:1: error: expected primary-expression before ‘}’ token
   42 | }
      | ^
answer.code:40:23: error: expected ‘;’ before ‘}’ token
   40 |         cout<<it<<' ';
      |                       ^
      |                       ;
   41 | 
   42 | }
      | ~                      
answer.code:42:1: error: expected primary-expression before ‘}’ token
   42 | }
      | ^
answer.code:40:23: error: expected ‘)’ before ‘}’ token
   40 |         cout<<it<<' ';
      |                       ^
      |                       )
   41 | 
   42 | }
      | ~                      
answer.code:39:8: note: to match this ‘(’
   39 |     for(auto it:vec)
      |        ^
answer.code:42:1: error: expected primary-expression before ‘}’ token
   42 | }
      | ^