Borderou de evaluare (job #2661144)

Utilizator IulianOleniucIulian Oleniuc IulianOleniuc Data 21 octombrie 2020 14:34:36
Problema A+B Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In member function 'std::vector<int> Graph::dijkstra(int)': main.cpp:30:27: error: expected unqualified-id before '[' token for (auto [nghb, cost] : ad[node]) ^ main.cpp:30:27: error: expected ';' before '[' token main.cpp:30:28: error: 'nghb' was not declared in this scope for (auto [nghb, cost] : ad[node]) ^~~~ main.cpp:30:34: error: 'cost' was not declared in this scope for (auto [nghb, cost] : ad[node]) ^~~~ main.cpp: In lambda function: main.cpp:30:40: error: expected '{' before ':' token for (auto [nghb, cost] : ad[node]) ^ main.cpp: In member function 'std::vector<int> Graph::dijkstra(int)': main.cpp:30:40: error: expected ';' before ':' token main.cpp:30:40: error: expected primary-expression before ':' token main.cpp:30:40: error: expected ')' before ':' token main.cpp:30:40: error: expected primary-expression before ':' token main.cpp: In function 'int main()': main.cpp:45:16: error: expected unqualified-id before '[' token for (auto& [x, y] : edg) { ^ main.cpp:45:16: error: expected ';' before '[' token main.cpp:45:17: error: 'x' was not declared in this scope for (auto& [x, y] : edg) { ^ main.cpp:45:20: error: 'y' was not declared in this scope for (auto& [x, y] : edg) { ^ main.cpp: In lambda function: main.cpp:45:23: error: expected '{' before ':' token for (auto& [x, y] : edg) { ^ main.cpp: In function 'int main()': main.cpp:45:23: error: expected ';' before ':' token main.cpp:45:23: error: expected primary-expression before ':' token main.cpp:45:23: error: expected ')' before ':' token main.cpp:45:23: error: expected primary-expression before ':' token main.cpp:50:16: error: expected unqualified-id before '[' token for (auto& [x, y] : pth) ^ main.cpp:50:16: error: expected ';' before '[' token main.cpp:50:17: error: 'x' was not declared in this scope for (auto& [x, y] : pth) ^ main.cpp:50:20: error: 'y' was not declared in this scope for (auto& [x, y] : pth) ^ Non zero exit status: 1

Ceva nu functioneaza?