Problem priorityqueue
User yin
Submission Time 2025-06-19 09:52:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

priorityqueue.cpp: In function ‘int main()’:
priorityqueue.cpp:3:1: error: ‘cin’ was not declared in this scope
3 | cin >> Q;
| ^~~
priorityqueue.cpp:4:1: error: ‘priority_queue’ was not declared in this scope
4 | priority_queue<long long>pq;
| ^~~~~~~~~~~~~~
priorityqueue.cpp:4:16: error: expected primary-expression before ‘long’
4 | priority_queue<long long>pq;
| ^~~~
priorityqueue.cpp:9:9: error: ‘pq’ was not declared in this scope
9 | pq.pop();
| ^~
priorityqueue.cpp:13:9: error: ‘pq’ was not declared in this scope
13 | pq.push(X);
| ^~
priorityqueue.cpp:16:18: error: ‘pq’ was not declared in this scope
16 | length = pq.size();
| ^~
priorityqueue.cpp:17:9: error: ‘cout’ was not declared in this scope
17 | cout << length << "\n";
| ^~~~