QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#540298#8941. Even or Odd Spanning TreeOSMA (Yuichi Hasegawa, Haruki Tsukada, Shingo Taniguchi)#Compile Error//C++145.3kb2024-08-31 16:50:052024-08-31 16:50:05

Details

answer.code: In member function ‘void WLCA::init(ll, const std::vector<std::vector<std::pair<long long int, std::pair<long long int, long long int> > > >&)’:
answer.code:35:28: error: missing template arguments before ‘(’ token
   35 |         SW.resize(L, vector(N, T_e()));
      |                            ^
answer.code:36:28: error: missing template arguments before ‘(’ token
   36 |         TW.resize(L, vector(N, T_e()));
      |                            ^
answer.code: In lambda function:
answer.code:42:23: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   42 |             for (auto [to, w] : G[i]) {
      |                       ^
answer.code: In function ‘std::vector<Edge> prim(ll, std::vector<Edge>&)’:
answer.code:131:14: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
  131 |         auto [from, to, c] = heap.top();
      |              ^
answer.code: In function ‘void solve()’:
answer.code:181:36: error: missing template arguments before ‘{’ token
  181 |         G[e.f].push_back({e.t, pair{co, ce}});
      |                                    ^
answer.code:181:36: error: expected ‘}’ before ‘{’ token
  181 |         G[e.f].push_back({e.t, pair{co, ce}});
      |                          ~         ^
answer.code:181:36: error: expected ‘)’ before ‘{’ token
  181 |         G[e.f].push_back({e.t, pair{co, ce}});
      |                         ~          ^
      |                                    )
answer.code:181:45: error: expected primary-expression before ‘)’ token
  181 |         G[e.f].push_back({e.t, pair{co, ce}});
      |                                             ^
answer.code:182:11: error: ‘e’ was not declared in this scope
  182 |         G[e.t].push_back({e.f, pair{co, ce}});
      |           ^
answer.code:182:36: error: missing template arguments before ‘{’ token
  182 |         G[e.t].push_back({e.f, pair{co, ce}});
      |                                    ^
answer.code:182:36: error: expected ‘}’ before ‘{’ token
  182 |         G[e.t].push_back({e.f, pair{co, ce}});
      |                          ~         ^
answer.code:182:36: error: expected ‘)’ before ‘{’ token
  182 |         G[e.t].push_back({e.f, pair{co, ce}});
      |                         ~          ^
      |                                    )
answer.code: At global scope:
answer.code:182:45: error: expected unqualified-id before ‘)’ token
  182 |         G[e.t].push_back({e.f, pair{co, ce}});
      |                                             ^
answer.code:183:5: error: expected declaration before ‘}’ token
  183 |     }
      |     ^
answer.code:184:14: error: ‘N’ was not declared in this scope
  184 |     WLCA LCA(N, G);
      |              ^
answer.code:184:17: error: ‘G’ was not declared in this scope
  184 |     WLCA LCA(N, G);
      |                 ^
answer.code:189:5: error: expected unqualified-id before ‘for’
  189 |     for (auto e : E) {
      |     ^~~
answer.code:206:5: error: expected unqualified-id before ‘if’
  206 |     if (ans2 == inf) ans2 = -1;
      |     ^~
answer.code:207:5: error: expected unqualified-id before ‘if’
  207 |     if (Tw % 2) swap(Tw, ans2);
      |     ^~
answer.code:209:5: error: ‘cout’ does not name a type
  209 |     cout << Tw << " " << ans2 << endl;
      |     ^~~~
answer.code:210:1: error: expected declaration before ‘}’ token
  210 | }
      | ^