QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#150665#4194. Killjoys' ConferenceMaMengQiCompile Error//C++17646b2023-08-25 23:50:212023-08-25 23:50:23

Details

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