QOJ.ac
QOJ
The 2nd Universal Cup Finals is coming! Check out our event page, schedule, and competition rules!
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#540298 | #8941. Even or Odd Spanning Tree | OSMA (Yuichi Hasegawa, Haruki Tsukada, Shingo Taniguchi)# | Compile Error | / | / | C++14 | 5.3kb | 2024-08-31 16:50:05 | 2024-08-31 16:50:05 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
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 | } | ^