QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#442073#2810. Speedrunegypt_ioi2024b_03#Compile Error//C++231.4kb2024-06-15 07:03:452024-06-15 07:03:46

Details

speedrun.code: In function ‘void assignHints(int, int, int*, int*)’:
speedrun.code:23:15: error: ‘j’ does not name a type
   23 |     for (auto j : adj[cur]) if (!vis[j]) { new_cur = j; break;}
      |               ^
speedrun.code:23:64: error: expected ‘;’ before ‘for’
   23 |     for (auto j : adj[cur]) if (!vis[j]) { new_cur = j; break;}
      |                                                                ^
      |                                                                ;
   24 |     for (int j = 0 ; j < 10 ; j++){
      |     ~~~                                                         
speedrun.code:24:5: error: expected primary-expression before ‘for’
   24 |     for (int j = 0 ; j < 10 ; j++){
      |     ^~~
speedrun.code:23:64: error: expected ‘;’ before ‘for’
   23 |     for (auto j : adj[cur]) if (!vis[j]) { new_cur = j; break;}
      |                                                                ^
      |                                                                ;
   24 |     for (int j = 0 ; j < 10 ; j++){
      |     ~~~                                                         
speedrun.code:24:5: error: expected primary-expression before ‘for’
   24 |     for (int j = 0 ; j < 10 ; j++){
      |     ^~~
speedrun.code:23:64: error: expected ‘)’ before ‘for’
   23 |     for (auto j : adj[cur]) if (!vis[j]) { new_cur = j; break;}
      |         ~                                                      ^
      |                                                                )
   24 |     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);
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~