Borderou de evaluare (job #3135850)

Utilizator nicholas9onicaMike Krack nicholas9onica Data 4 iunie 2023 16:09:36
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void dijkstra()': main.cpp:37:17: error: expected ';' before 'for' 37 | pq.pop() | ^ | ; 38 | for(int i=0;i<v[frn.nod].size();i++) | ~~~ main.cpp:38:39: error: the value of 'frn' is not usable in a constant expression 38 | for(int i=0;i<v[frn.nod].size();i++) | ^ main.cpp:33:14: note: 'frn' was not declared 'constexpr' 33 | edge frn; | ^~~ main.cpp:38:39: error: the value of 'frn' is not usable in a constant expression 38 | for(int i=0;i<v[frn.nod].size();i++) | ^ main.cpp:33:14: note: 'frn' was not declared 'constexpr' 33 | edge frn; | ^~~ main.cpp:38:39: error: the value of 'frn' is not usable in a constant expression 38 | for(int i=0;i<v[frn.nod].size();i++) | ^ main.cpp:33:14: note: 'frn' was not declared 'constexpr' 33 | edge frn; | ^~~ main.cpp:38:39: error: the value of 'frn' is not usable in a constant expression 38 | for(int i=0;i<v[frn.nod].size();i++) | ^ main.cpp:33:14: note: 'frn' was not declared 'constexpr' 33 | edge frn; | ^~~ main.cpp:38:39: error: the value of 'frn' is not usable in a constant expression 38 | for(int i=0;i<v[frn.nod].size();i++) | ^ main.cpp:33:14: note: 'frn' was not declared 'constexpr' 33 | edge frn; | ^~~ main.cpp:38:39: error: the value of 'frn' is not usable in a constant expression 38 | for(int i=0;i<v[frn.nod].size();i++) | ^ main.cpp:33:14: note: 'frn' was not declared 'constexpr' 33 | edge frn; | ^~~ main.cpp:38:39: error: the value of 'frn' is not usable in a constant expression 38 | for(int i=0;i<v[frn.nod].size();i++) | ^ main.cpp:33:14: note: 'frn' was not declared 'constexpr' 33 | edge frn; | ^~~ main.cpp:38:39: error: the value of 'frn' is not usable in a constant expression Non zero exit status: 1

Ceva nu functioneaza?