| Problem | priorityqueue |
|---|---|
| User | YH |
| Submission Time | 2026-06-24 15:06:41 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
priorityqueue.cpp: In function ‘int main()’:
priorityqueue.cpp:13:2: error: ‘priority_queue’ was not declared in this scope
13 | priority_queue<int> pq;
| ^~~~~~~~~~~~~~
priorityqueue.cpp:2:1: note: ‘std::priority_queue’ is defined in header ‘<queue>’; did you forget to ‘#include <queue>’?
1 | #include <iostream>
+++ |+#include <queue>
2 | using namespace std;
priorityqueue.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
priorityqueue.cpp:13:17: note: in expansion of macro ‘int’
13 | priority_queue<int> pq;
| ^~~
priorityqueue.cpp:20:4: error: ‘pq’ was not declared in this scope; did you mean ‘q’?
20 | pq.pop();
| ^~
| q
priorityqueue.cpp:26:4: error: ‘pq’ was not declared in this scope; did you mean ‘q’?
26 | pq.push(x);
| ^~
| q