Problem priorityqueue
User Kieran69
Submission Time 2026-07-08 17:25:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

priorityqueue.cpp: In function ‘int main()’:
priorityqueue.cpp:2:13: error: expected initializer before ‘long’
2 | #define int long long
| ^~~~
priorityqueue.cpp:9:1: note: in expansion of macro ‘int’
9 | int v; cin>>v;
| ^~~
priorityqueue.cpp:9:13: error: ‘v’ was not declared in this scope
9 | int v; cin>>v;
| ^
priorityqueue.cpp:10:13: error: ‘pq’ was not declared in this scope; did you mean ‘q’?
10 | if (v == 1) pq.pop();
| ^~
| q
priorityqueue.cpp:13:1: error: ‘pq’ was not declared in this scope; did you mean ‘q’?
13 | pq.push(v2);
| ^~
| q
priorityqueue.cpp:15:26: error: ‘pq’ was not declared in this scope; did you mean ‘q’?
15 | else if (v == 3) cout << pq.size() <<"\n";
| ^~
| q
priorityqueue.cpp:16:14: error: ‘pq’ was n