Borderou de evaluare (job #2703511)

Utilizator Ionut2791Voicila Ionut Marius Ionut2791 Data 8 februarie 2021 17:39:15
Problema Sate Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void findEnd(int, int)': main.cpp:21:16: error: expected unqualified-id before '[' token for (auto& [to, d] : graf[nod]) { ^ main.cpp:21:16: error: expected ';' before '[' token main.cpp:21:17: error: 'to' was not declared in this scope for (auto& [to, d] : graf[nod]) { ^~ main.cpp:21:21: error: 'd' was not declared in this scope for (auto& [to, d] : graf[nod]) { ^ main.cpp: In lambda function: main.cpp:21:24: error: expected '{' before ':' token for (auto& [to, d] : graf[nod]) { ^ main.cpp: In function 'void findEnd(int, int)': main.cpp:21:24: error: expected ';' before ':' token main.cpp:21:24: error: expected primary-expression before ':' token main.cpp:21:24: error: expected ')' before ':' token main.cpp:21:24: error: expected primary-expression before ':' token main.cpp: In function 'int main()': main.cpp:55:20: error: expected unqualified-id before '[' token for (auto &[to, d] : graf[nod]) { ^ main.cpp:55:20: error: expected ';' before '[' token main.cpp:55:21: error: 'to' was not declared in this scope for (auto &[to, d] : graf[nod]) { ^~ main.cpp:55:25: error: 'd' was not declared in this scope for (auto &[to, d] : graf[nod]) { ^ main.cpp: In lambda function: main.cpp:55:28: error: expected '{' before ':' token for (auto &[to, d] : graf[nod]) { ^ main.cpp: In function 'int main()': main.cpp:55:28: error: expected ';' before ':' token main.cpp:55:28: error: expected primary-expression before ':' token main.cpp:55:28: error: expected ')' before ':' token main.cpp:55:28: error: expected primary-expression before ':' token main.cpp:51:13: warning: unused variable 'nod' [-Wunused-variable] int nod = coada.front(); ^~~ Non zero exit status: 1

Ceva nu functioneaza?