QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#150064#5596. I Could Have WonZhangYiDeCompile Error//C++98884b2023-08-25 15:03:082023-08-25 15:03:09

詳細信息

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 | }
      | ^