Record Detail

Compile Error

In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp: In member function 'bool ShortestP2P::dijkstra(long long int, std::vector<long long int>&)':
/in/shortestP2P.hpp:54:9: error: 'priority_queue' was not declared in this scope
         priority_queue<pair<int, int>, vector<pair<int, int>>, greater<pair<int, int>>> pq;
         ^~~~~~~~~~~~~~
/in/shortestP2P.hpp:54:38: error: expected primary-expression before ',' token
         priority_queue<pair<int, int>, vector<pair<int, int>>, greater<pair<int, int>>> pq;
                                      ^
/in/shortestP2P.hpp:54:62: error: expected primary-expression before ',' token
         priority_queue<pair<int, int>, vector<pair<int, int>>, greater<pair<int, int>>> pq;
                                                              ^
/in/shortestP2P.hpp:54:87: error: expected primary-expression before '>' token
         priority_queue<pair<int, int>, vector<pair<int, int>>, greater<pair<int, int>>> pq;
                                                                                       ^
/in/shortestP2P.hpp:54:89: error: 'pq' was not declared in this scope
         priority_queue<pair<int, int>, vector<pair<int, int>>, greater<pair<int, int>>> pq;
                                                                                         ^~
/in/shortestP2P.hpp:77:5: error: no return statement in function returning non-void [-Werror=return-type]
     }
     ^
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Project 4
Language
C++
Submit At
2024-12-19 13:15:35
Judged At
2024-12-19 13:15:35
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes