QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#442068 | #2810. Speedrun | egypt_ioi2024b_03# | Compile Error | / | / | C++23 | 1.6kb | 2024-06-15 06:57:20 | 2024-06-15 06:57:21 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
speedrun.code:5:18: error: ‘>>’ should be ‘> >’ within a nested template argument list 5 | vector<vector<int>> adj(1001); | ^~ | > > speedrun.code:7:18: error: ‘>>’ should be ‘> >’ within a nested template argument list 7 | vector<vector<int>> path(1001); | ^~ | > > speedrun.code: In function ‘void dfs(int, int)’: speedrun.code:10:13: error: ‘i’ does not name a type 10 | for (auto i : adj[node]){ | ^ speedrun.code:14:4: error: expected ‘;’ before ‘if’ 14 | } | ^ | ; 15 | if (node != 1) path[node].push_back(par); | ~~ speedrun.code:15:3: error: expected primary-expression before ‘if’ 15 | if (node != 1) path[node].push_back(par); | ^~ speedrun.code:14:4: error: expected ‘;’ before ‘if’ 14 | } | ^ | ; 15 | if (node != 1) path[node].push_back(par); | ~~ speedrun.code:15:3: error: expected primary-expression before ‘if’ 15 | if (node != 1) path[node].push_back(par); | ^~ speedrun.code:14:4: error: expected ‘)’ before ‘if’ 14 | } | ^ | ) 15 | if (node != 1) path[node].push_back(par); | ~~ speedrun.code:10:7: note: to match this ‘(’ 10 | for (auto i : adj[node]){ | ^ speedrun.code: In function ‘void assignHints(int, int, int*, int*)’: speedrun.code:33:15: error: ‘j’ does not name a type 33 | for (auto j : adj[cur]) if (!vis[j]) { new_cur = j; break;} | ^ speedrun.code:33:64: error: expected ‘;’ before ‘for’ 33 | for (auto j : adj[cur]) if (!vis[j]) { new_cur = j; break;} | ^ | ; 34 | for (int j = 0 ; j < 10 ; j++){ | ~~~ speedrun.code:34:5: error: expected primary-expression before ‘for’ 34 | for (int j = 0 ; j < 10 ; j++){ | ^~~ speedrun.code:33:64: error: expected ‘;’ before ‘for’ 33 | for (auto j : adj[cur]) if (!vis[j]) { new_cur = j; break;} | ^ | ; 34 | for (int j = 0 ; j < 10 ; j++){ | ~~~ speedrun.code:34:5: error: expected primary-expression before ‘for’ 34 | for (int j = 0 ; j < 10 ; j++){ | ^~~ speedrun.code:33:64: error: expected ‘)’ before ‘for’ 33 | for (auto j : adj[cur]) if (!vis[j]) { new_cur = j; break;} | ~ ^ | ) 34 | 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); | ~~~~~~^~~~~~~~~~~~~~~~~~~