Problem | dijkstra |
---|---|
User | jmuzhen |
Submission Time | 2024-06-30 21:46:46 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:23:46: error: type/value mismatch at argument 3 in template parameter list for ‘template<class _Tp, class _Sequence, class _Compare> class std::priority_queue’
23 | priority_queue<ii, vector<ii>, greater<>()) pq;
| ^
dijkstra.cpp:23:46: note: expected a type, got ‘std::greater<void>()’
dijkstra.cpp:23:47: error: expected unqualified-id before ‘)’ token
23 | priority_queue<ii, vector<ii>, greater<>()) pq;
| ^
dijkstra.cpp:24:18: error: ‘pq’ was not declared in this scope
24 | dist[0] = 0; pq.push({0, 0});
| ^~