QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#442071#2810. Speedrunegypt_ioi2024b_03#Compile Error//C++231.4kb2024-06-15 07:02:042024-06-15 07:02:04

详细

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);
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~