Problem duckhunt26
User ethantanaki
Submission Time 2026-12-04 10:55:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt26.cpp: In function ‘int main()’:
duckhunt26.cpp:11:27: error: invalid declarator before ‘pq’
11 | int priority_queue<int> pq;
| ^~
duckhunt26.cpp:14:4: error: ‘pq’ was not declared in this scope
14 | pq.push(num);
| ^~
duckhunt26.cpp:16:8: error: ‘pq’ was not declared in this scope
16 | sum+=pq.top();
| ^~