Problem topical
User haydendoo
Submission Time 2023-12-08 12:19:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

topical.cpp: In function ‘bool isPossible(int)’:
topical.cpp:15:5: error: ‘priority_queue’ was not declared in this scope
15 | priority_queue<pair<int, int>, vector<pair<int, int>>, greater<pair<int, int>>> pq;
| ^~~~~~~~~~~~~~
topical.cpp:4:1: note: ‘std::priority_queue’ is defined in header ‘<queue>’; did you forget to ‘#include <queue>’?
3 | #include <algorithm>
+++ |+#include <queue>
4 |
topical.cpp:15:34: error: expected primary-expression before ‘,’ token
15 | priority_queue<pair<int, int>, vector<pair<int, int>>, greater<pair<int, int>>> pq;
| ^
topical.cpp:15:58: error: expected primary-expression before ‘,’ token
15 | priority_queue<pair<int, int>, vector<pair<int, int>>, greater<pair<int, int>>> pq;
|