Problem dijkstra
User shoryu386
Submission Time 2023-05-21 21:34:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:40:41: error: expected ‘;’ before ‘{’ token
40 | if (thing.top().first > distance[node]{
| ^
| ;
dijkstra.cpp:45:20: error: expected ‘)’ before ‘;’ token
45 | thing.pop();
| ^
| )
dijkstra.cpp:40:6: note: to match this ‘(’
40 | if (thing.top().first > distance[node]{
| ^
dijkstra.cpp:45:18: error: could not convert ‘thing.std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, std::greater<std::pair<int, int> > >::pop()’ from ‘void’ to ‘bool’
45 | thing.pop();
| ~~~~~~~~~^~
| |
| void