Problem | dijkstra |
---|---|
User | fanyinuo2021 |
Submission Time | 2023-08-20 10:10:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
dijkstra.cpp: In function ‘void dijkstra()’:
dijkstra.cpp:32:51: error: template argument 3 is invalid
32 | priority_queue<PII, vector<PII>, greater<PII> heap;
| ^~~~
dijkstra.cpp:38:5: error: ‘heap’ was not declared in this scope
38 | heap.push({0, 1}); //initally vertex 1 distance is 0
| ^~~~