Problem sadtrainer
User DaPeter
Submission Time 2026-02-02 12:27:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sadtrainer.cpp: In function ‘int main()’:
sadtrainer.cpp:6:19: error: expected ‘;’ before ‘priority_queue’
6 | int n,k;cin>>n>>k
| ^
| ;
7 | priority_queue<int> pq;
| ~~~~~~~~~~~~~~
sadtrainer.cpp:10:3: error: ‘pq’ was not declared in this scope
10 | pq.push(x);
| ^~
sadtrainer.cpp:13:3: error: ‘pq’ was not declared in this scope
13 | pq.pop();
| ^~
sadtrainer.cpp:15:8: error: ‘pq’ was not declared in this scope
15 | cout<<pq.top();
| ^~