Problem dijkstra
User paaaaaaaaaaaaaaaaaaa
Submission Time 2024-11-15 14:56:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dijkstra.cpp: In function ‘int32_t main()’:
dijkstra.cpp:7:79: error: template argument 2 is invalid
7 | priority_queue<pair<int,int>, vector<pair<int,int> ,greater<pair<int,int> > > pq;
| ^~
dijkstra.cpp:7:79: error: template argument 3 is invalid
dijkstra.cpp:10:1: error: ‘pq’ was not declared in this scope
10 | pq.push(make_pair(0, source)); d[source] = 0;
| ^~
dijkstra.cpp:10:22: error: ‘source’ was not declared in this scope
10 | pq.push(make_pair(0, source)); d[source] = 0;
| ^~~~~~