QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#442071 | #2810. Speedrun | egypt_ioi2024b_03# | Compile Error | / | / | C++23 | 1.4kb | 2024-06-15 07:02:04 | 2024-06-15 07:02:04 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
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); | ~~~~~~^~~~~~~~~~~~~~~~~~~