Problem motivation
User Reverberate
Submission Time 2023-08-14 16:12:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

motivation.cpp: In function ‘int main()’:
motivation.cpp:11:5: error: expected initializer before ‘for’
11 | for(int x=0;x<n;x++){
| ^~~
motivation.cpp:11:17: error: ‘x’ was not declared in this scope
11 | for(int x=0;x<n;x++){
| ^
motivation.cpp:18:9: error: ‘pq’ was not declared in this scope
18 | pq.push(a[x]);
| ^~
motivation.cpp:22:12: error: ‘pq’ was not declared in this scope
22 | while(!pq.empty()){
| ^~