QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#439274 | #2810. Speedrun | egypt_ioi2024_09# | Compile Error | / | / | C++23 | 1.2kb | 2024-06-11 18:54:28 | 2024-06-11 18:54:29 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
speedrun.code:10:23: error: ‘>>’ should be ‘> >’ within a nested template argument list 10 | vector < vector < int >> adj; | ^~ | > > speedrun.code: In function ‘void dfs(int, int)’: speedrun.code:14:14: error: ‘ch’ does not name a type 14 | for(auto ch : adj[node]) { | ^~ speedrun.code:18:6: error: expected ‘;’ before ‘vector’ 18 | } | ^ | ; 19 | vector < int > val(n + 1); | ~~~~~~ speedrun.code:19:23: error: expected initializer before ‘(’ token 19 | vector < int > val(n + 1); | ^ speedrun.code:19:23: error: could not convert ‘val’ from ‘std::vector<int>’ to ‘bool’ speedrun.code:19:23: error: expected ‘;’ before ‘(’ token 19 | vector < int > val(n + 1); | ^ | ; speedrun.code:19:30: error: expected ‘)’ before ‘;’ token 19 | vector < int > val(n + 1); | ^ | ) speedrun.code:14:8: note: to match this ‘(’ 14 | for(auto ch : adj[node]) { | ^ speedrun.code:20:14: error: ‘i’ does not name a type 20 | for(auto i : arr) val[i] = 1; | ^ speedrun.code:20:34: error: expected ‘;’ before ‘for’ 20 | for(auto i : arr) val[i] = 1; | ^ | ; 21 | for(int i = 1 ; i <= n ; i++) { | ~~~ speedrun.code:21:5: error: expected primary-expression before ‘for’ 21 | for(int i = 1 ; i <= n ; i++) { | ^~~ speedrun.code:20:34: error: expected ‘;’ before ‘for’ 20 | for(auto i : arr) val[i] = 1; | ^ | ; 21 | for(int i = 1 ; i <= n ; i++) { | ~~~ speedrun.code:21:5: error: expected primary-expression before ‘for’ 21 | for(int i = 1 ; i <= n ; i++) { | ^~~ speedrun.code:20:34: error: expected ‘)’ before ‘for’ 20 | for(auto i : arr) val[i] = 1; | ~ ^ | ) 21 | for(int i = 1 ; i <= n ; i++) { | ~~~ speedrun.code:22:26: error: ‘val’ was not declared in this scope 22 | setHint(node, i, val[i]); | ^~~ speedrun.code: In function ‘void assignHints(int, int, int*, int*)’: speedrun.code:28:33: error: ‘>>’ should be ‘> >’ within a nested template argument list 28 | adj = vector < vector < int >> (n + 14); | ^~ | > > 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); | ~~~~~~^~~~~~~~~~~~~~~~~~~