QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#442068#2810. Speedrunegypt_ioi2024b_03#Compile Error//C++231.6kb2024-06-15 06:57:202024-06-15 06:57:21

詳細信息

speedrun.code:5:18: error: ‘>>’ should be ‘> >’ within a nested template argument list
    5 | vector<vector<int>> adj(1001);
      |                  ^~
      |                  > >
speedrun.code:7:18: error: ‘>>’ should be ‘> >’ within a nested template argument list
    7 | vector<vector<int>> path(1001);
      |                  ^~
      |                  > >
speedrun.code: In function ‘void dfs(int, int)’:
speedrun.code:10:13: error: ‘i’ does not name a type
   10 |   for (auto i : adj[node]){
      |             ^
speedrun.code:14:4: error: expected ‘;’ before ‘if’
   14 |   }
      |    ^
      |    ;
   15 |   if (node != 1) path[node].push_back(par);
      |   ~~
speedrun.code:15:3: error: expected primary-expression before ‘if’
   15 |   if (node != 1) path[node].push_back(par);
      |   ^~
speedrun.code:14:4: error: expected ‘;’ before ‘if’
   14 |   }
      |    ^
      |    ;
   15 |   if (node != 1) path[node].push_back(par);
      |   ~~
speedrun.code:15:3: error: expected primary-expression before ‘if’
   15 |   if (node != 1) path[node].push_back(par);
      |   ^~
speedrun.code:14:4: error: expected ‘)’ before ‘if’
   14 |   }
      |    ^
      |    )
   15 |   if (node != 1) path[node].push_back(par);
      |   ~~
speedrun.code:10:7: note: to match this ‘(’
   10 |   for (auto i : adj[node]){
      |       ^
speedrun.code: In function ‘void assignHints(int, int, int*, int*)’:
speedrun.code:33:15: error: ‘j’ does not name a type
   33 |     for (auto j : adj[cur]) if (!vis[j]) { new_cur = j; break;}
      |               ^
speedrun.code:33:64: error: expected ‘;’ before ‘for’
   33 |     for (auto j : adj[cur]) if (!vis[j]) { new_cur = j; break;}
      |                                                                ^
      |                                                                ;
   34 |     for (int j = 0 ; j < 10 ; j++){
      |     ~~~                                                         
speedrun.code:34:5: error: expected primary-expression before ‘for’
   34 |     for (int j = 0 ; j < 10 ; j++){
      |     ^~~
speedrun.code:33:64: error: expected ‘;’ before ‘for’
   33 |     for (auto j : adj[cur]) if (!vis[j]) { new_cur = j; break;}
      |                                                                ^
      |                                                                ;
   34 |     for (int j = 0 ; j < 10 ; j++){
      |     ~~~                                                         
speedrun.code:34:5: error: expected primary-expression before ‘for’
   34 |     for (int j = 0 ; j < 10 ; j++){
      |     ^~~
speedrun.code:33:64: error: expected ‘)’ before ‘for’
   33 |     for (auto j : adj[cur]) if (!vis[j]) { new_cur = j; break;}
      |         ~                                                      ^
      |                                                                )
   34 |     for (int j = 0 ; j < 10 ; j++){
      |     ~~~                                                         
grader_speedrun.cpp: In function ‘int readvalue()’:
grader_speedrun.cpp:9:9: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 |   fscanf(input, "%d", &val);
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~