QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#150665#4194. Killjoys' ConferenceMaMengQiCompile Error//C++17646b2023-08-25 23:50:212023-08-25 23:50:23

詳細信息

answer.code: In function ‘void dfs(int, int)’:
answer.code:15:19: error: ‘to’ was not declared in this scope; did you mean ‘tm’?
   15 |         for(int v=to[u]) dfs(v,3-clr);
      |                   ^~
      |                   tm
answer.code:18:1: error: expected primary-expression before ‘}’ token
   18 | }
      | ^
answer.code:15:39: error: expected ‘;’ before ‘}’ token
   15 |         for(int v=to[u]) dfs(v,3-clr);
      |                                       ^
      |                                       ;
......
   18 | }
      | ~                                      
answer.code:18:1: error: expected primary-expression before ‘}’ token
   18 | }
      | ^
answer.code:15:39: error: expected ‘)’ before ‘}’ token
   15 |         for(int v=to[u]) dfs(v,3-clr);
      |            ~                          ^
      |                                       )
......
   18 | }
      | ~                                      
answer.code:18:1: error: expected primary-expression before ‘}’ token
   18 | }
      | ^