Borderou de evaluare (job #2752158)

Utilizator flibiaVisanu Cristian flibia Data 16 mai 2021 22:00:21
Problema Algoritmul Bellman-Ford Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void solve(int, std::istream&, std::ostream&)': main.cpp:140:19: error: expected unqualified-id before '[' token for (auto [son, cost] : v[dad]) { ^ main.cpp:140:19: error: expected ';' before '[' token main.cpp:140:20: error: 'son' was not declared in this scope for (auto [son, cost] : v[dad]) { ^~~ main.cpp:140:25: error: 'cost' was not declared in this scope for (auto [son, cost] : v[dad]) { ^~~~ main.cpp: In lambda function: main.cpp:140:31: error: expected '{' before ':' token for (auto [son, cost] : v[dad]) { ^ main.cpp: In function 'void solve(int, std::istream&, std::ostream&)': main.cpp:140:31: error: expected ';' before ':' token main.cpp:140:31: error: expected primary-expression before ':' token main.cpp:140:31: error: expected ')' before ':' token main.cpp:140:31: error: expected primary-expression before ':' token main.cpp:137:14: warning: unused variable 'dad' [-Wunused-variable] auto dad = q.front(); ^~~ main.cpp:135:9: warning: unused variable 'target' [-Wunused-variable] int target = -1; ^~~~~~ Non zero exit status: 1

Ceva nu functioneaza?