Problem priorityqueue
User Shauryaw
Submission Time 2025-06-19 10:02:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

priorityqueue.cpp: In function ‘int main()’:
priorityqueue.cpp:12:18: error: ‘pq’ was not declared in this scope; did you mean ‘pqy’?
12 | if (!pq.empty()) {
| ^~
| pqy
priorityqueue.cpp:18:13: error: ‘pq’ was not declared in this scope; did you mean ‘pqy’?
18 | pq.push(X);
| ^~
| pqy
priorityqueue.cpp:20:21: error: ‘pq’ was not declared in this scope; did you mean ‘pqy’?
20 | cout << pq.size();
| ^~
| pqy
priorityqueue.cpp:22:18: error: ‘pq’ was not declared in this scope; did you mean ‘pqy’?
22 | if (!pq.empty()) {
| ^~
| pqy