Borderou de evaluare (job #2620346)

Utilizator Gliumarin negai Gliu Data 28 mai 2020 18:51:02
Problema Distante Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:13:21: warning: integer overflow in expression [-Woverflow] const int oo=(1<<31)-1; ~~~~~~~^~ main.cpp: In function 'void dijkstra(int)': main.cpp:21:8: error: incompatible types in assignment of 'const int' to 'int [100005]' dist=oo; ^~ main.cpp:26:5: error: request for member 'push' in 'pq', which is of non-class type 'std::priority_queue<std::tuple<int, int> > [100005]' pq.push({0,nod}); ^~~~ main.cpp:27:12: error: request for member 'empty' in 'pq', which is of non-class type 'std::priority_queue<std::tuple<int, int> > [100005]' while(!pq.empty()){ ^~~~~ main.cpp:28:19: error: request for member 'top' in 'pq', which is of non-class type 'std::priority_queue<std::tuple<int, int> > [100005]' int k=get<1>(pq.top()); ^~~ main.cpp:29:6: error: request for member 'pop' in 'pq', which is of non-class type 'std::priority_queue<std::tuple<int, int> > [100005]' pq.pop(); ^~~ main.cpp:38:8: error: request for member 'push' in 'pq', which is of non-class type 'std::priority_queue<std::tuple<int, int> > [100005]' pq.push({-dist[b], b}); ^~~~ Non zero exit status: 1

Ceva nu functioneaza?