Karosai (LMIO 2018/2019)

Taškai: 0

Compile: FAIL

karosai_vyr.cpp: In function ‘void solve()’: karosai_vyr.cpp:49:14: error: expected unqualified-id before ‘[’ token auto [cost, v] = q.top(); ^ karosai_vyr.cpp:51:14: error: ‘v’ was not declared in this scope if(d[v] != -1) continue; ^ karosai_vyr.cpp:52:9: error: ‘cost’ was not declared in this scope cost *= -1; ^ karosai_vyr.cpp:53:11: error: ‘v’ was not declared in this scope d[v] = cost; ^ karosai_vyr.cpp:54:18: error: expected unqualified-id before ‘[’ token for(auto [u, w] : g[v]) ^ karosai_vyr.cpp:54:18: error: expected ‘;’ before ‘[’ token karosai_vyr.cpp:54:19: error: ‘u’ was not declared in this scope for(auto [u, w] : g[v]) ^ karosai_vyr.cpp:54:22: error: ‘w’ was not declared in this scope for(auto [u, w] : g[v]) ^ karosai_vyr.cpp: In lambda function: karosai_vyr.cpp:54:25: error: expected ‘{’ before ‘:’ token for(auto [u, w] : g[v]) ^ karosai_vyr.cpp: In function ‘void solve()’: karosai_vyr.cpp:54:25: error: expected ‘;’ before ‘:’ token karosai_vyr.cpp:54:25: error: expected primary-expression before ‘:’ token karosai_vyr.cpp:54:25: error: expected ‘)’ before ‘:’ token karosai_vyr.cpp:54:25: error: expected primary-expression before ‘:’ token karosai_vyr.cpp:55:38: error: expected primary-expression before ‘)’ token q.push({-max(cost, w), u}); ^

nr.resulttimemessage