Problem graphoverflow
User PlayVoltz
Submission Time 2024-03-03 21:45:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

graphoverflow.cpp: In function ‘long long int dijk(long long int, long long int)’:
graphoverflow.cpp:42:21: error: two or more data types in declaration of ‘type name’
42 | priority_queue<pli vector<pli>, greater<pli> > pq;
| ^~~~~~~~~~~
graphoverflow.cpp:42:47: error: template argument 1 is invalid
42 | priority_queue<pli vector<pli>, greater<pli> > pq;
| ^
graphoverflow.cpp:42:47: error: no type named ‘value_type’ in ‘struct std::greater<std::pair<long double, long long int> >’
graphoverflow.cpp:42:47: error: template argument 3 is invalid
graphoverflow.cpp:44:5: error: request for member ‘push’ in ‘pq’, which is of non-class type ‘int’
44 | pq.push(mp(0, start));
| ^~~~
graphoverflow.cpp:45:13: error: request for member ‘empty’ in ‘pq’, which is of non-class type ‘int’
45 | while (!pq.empty()){<