Problem | dijkstra |
---|---|
User | jmuzhen |
Submission Time | 2024-06-30 21:46:56 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from dijkstra.cpp:1:
/usr/include/c++/9/bits/stl_queue.h: In instantiation of ‘class std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, std::greater<void>()>’:
dijkstra.cpp:23:49: required from here
/usr/include/c++/9/bits/stl_queue.h:485:18: error: field ‘std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, std::greater<void>()>::comp’ invalidly declared function type
485 | _Compare comp;
| ^~~~
dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:23:49: error: no matching function for call to ‘std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, std::greater<void>()>::priority_queue()’
23 | priority_queue<ii, v