QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#856547 | #9732. Gathering Mushrooms | ucup-team3665 | Compile Error | / | / | C++14 | 5.1kb | 2025-01-14 10:38:57 | 2025-01-14 10:38:57 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘void Solve()’: answer.code:27:10: error: missing template arguments before ‘g’ 27 | vector g(N, vector<int>()); | ^ answer.code:30:31: error: ‘g’ was not declared in this scope 30 | for (int i = 0; i < N; i++) g[a[i]].push_back(i); | ^ answer.code:81:10: error: missing template arguments before ‘col_cycle_pos’ 81 | vector col_cycle_pos(N, vector<int>()); | ^~~~~~~~~~~~~ answer.code: In lambda function: answer.code:86:18: error: ‘col_cycle_pos’ was not declared in this scope 86 | int sz = int(col_cycle_pos[c].size()); | ^~~~~~~~~~~~~ answer.code: In function ‘void Solve()’: answer.code:95:10: error: missing template arguments before ‘col_dep’ 95 | vector col_dep(N, vector<int>()); | ^~~~~~~ answer.code: In lambda function: answer.code:100:30: error: ‘col_dep’ was not declared in this scope 100 | if (in_cycle[u] == -1) col_dep[c].push_back(d); | ^~~~~~~ answer.code:104:14: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 104 | auto [fa_step, fa_col] = ans[a[u]]; | ^ answer.code:106:18: error: ‘col_dep’ was not declared in this scope 106 | int sz = col_dep[c].size(); | ^~~~~~~ answer.code:121:21: error: ‘g’ was not declared in this scope 121 | for (auto v : g[u]) { | ^ answer.code:126:30: error: ‘col_dep’ was not declared in this scope 126 | if (in_cycle[u] == -1) col_dep[c].pop_back(); | ^~~~~~~ answer.code: In lambda function: answer.code:138:20: error: ‘col_cycle_pos’ was not declared in this scope 138 | int sz = int(col_cycle_pos[c].size()); | ^~~~~~~~~~~~~ answer.code:147:12: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 147 | auto [nxt_step, nxt_col] = ans[v[(i + 1) % len]]; | ^ answer.code: In function ‘void Solve()’: answer.code:162:41: error: ‘col_cycle_pos’ was not declared in this scope 162 | for (int i = 0; i < cycle_len; i++) col_cycle_pos[col[cycle[o][i]]].push_back(i), col_set.insert(col[cycle[o][i]]); | ^~~~~~~~~~~~~ answer.code:166:21: warning: range-based ‘for’ loops with initializer only available with ‘-std=c++20’ or ‘-std=gnu++20’ [-Wc++20-extensions] 166 | for (int i = 0; auto &x : cycle[o]) { | ^~~~ answer.code:171:29: error: ‘col_cycle_pos’ was not declared in this scope 171 | for (auto &c : col_set) col_cycle_pos[c].clear(); | ^~~~~~~~~~~~~