Problem catlunch
User Austin
Submission Time 2025-08-15 20:10:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catlunch.cpp: In function ‘int main()’:
catlunch.cpp:10:5: error: ‘priority_queue’ was not declared in this scope
10 | priority_queue<int> pq;
| ^~~~~~~~~~~~~~
catlunch.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;
catlunch.cpp:10:20: error: expected primary-expression before ‘int’
10 | priority_queue<int> pq;
| ^~~
catlunch.cpp:18:9: error: ‘pq’ was not declared in this scope
18 | pq.push(x);
| ^~