QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#454576#2810. Speedrunegypt_ioi2024_08#Compile Error//C++23753b2024-06-25 04:39:422024-06-25 04:39:43

詳細信息

speedrun.code: In function ‘void dfs(int, int)’:
speedrun.code:28:13: error: ‘it’ does not name a type; did you mean ‘st’?
   28 |    for(auto it:adj[node]) {
      |             ^~
      |             st
speedrun.code:30:5: error: expected ‘;’ before ‘if’
   30 |    }
      |     ^
      |     ;
   31 |    if(par!=node) bool h = goTo(par);
      |    ~~
speedrun.code:31:4: error: expected primary-expression before ‘if’
   31 |    if(par!=node) bool h = goTo(par);
      |    ^~
speedrun.code:30:5: error: expected ‘;’ before ‘if’
   30 |    }
      |     ^
      |     ;
   31 |    if(par!=node) bool h = goTo(par);
      |    ~~
speedrun.code:31:4: error: expected primary-expression before ‘if’
   31 |    if(par!=node) bool h = goTo(par);
      |    ^~
speedrun.code:30:5: error: expected ‘)’ before ‘if’
   30 |    }
      |     ^
      |     )
   31 |    if(par!=node) bool h = goTo(par);
      |    ~~
speedrun.code:28:7: note: to match this ‘(’
   28 |    for(auto it:adj[node]) {
      |       ^
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);
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~