QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#435257#2810. Speedrunegypt_ioi2024_11#Compile Error//C++23785b2024-06-08 19:27:162024-06-08 19:27:16

Details

speedrun.code: In function ‘void dfs(int, int)’:
speedrun.code:35:11: error: ‘it’ does not name a type; did you mean ‘int’?
   35 |  for(auto it : o)
      |           ^~
      |           int
speedrun.code:39:3: error: expected ‘;’ before ‘if’
   39 |  }
      |   ^
      |   ;
   40 |  if(p != -1) goTo(p);
      |  ~~
speedrun.code:40:2: error: expected primary-expression before ‘if’
   40 |  if(p != -1) goTo(p);
      |  ^~
speedrun.code:39:3: error: expected ‘;’ before ‘if’
   39 |  }
      |   ^
      |   ;
   40 |  if(p != -1) goTo(p);
      |  ~~
speedrun.code:40:2: error: expected primary-expression before ‘if’
   40 |  if(p != -1) goTo(p);
      |  ^~
speedrun.code:39:3: error: expected ‘)’ before ‘if’
   39 |  }
      |   ^
      |   )
   40 |  if(p != -1) goTo(p);
      |  ~~
speedrun.code:35:5: note: to match this ‘(’
   35 |  for(auto it : o)
      |     ^
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);
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~