QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#856547#9732. Gathering Mushroomsucup-team3665Compile Error//C++145.1kb2025-01-14 10:38:572025-01-14 10:38:57

Details

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