Problem deathray
User 123
Submission Time 2026-04-25 11:24:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

deathray.cpp: In function ‘int main()’:
deathray.cpp:10:2: error: ‘priority_queue’ was not declared in this scope
10 | priority_queue<int, vector<int>, greater<int> > pq;
| ^~~~~~~~~~~~~~
deathray.cpp:3:1: note: ‘std::priority_queue’ is defined in header ‘<queue>’; did you forget to ‘#include <queue>’?
2 | #include <vector>
+++ |+#include <queue>
3 | #define int long long
deathray.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
deathray.cpp:10:17: note: in expansion of macro ‘int’
10 | priority_queue<int, vector<int>, greater<int> > pq;
| ^~~
deathray.cpp:17:3: error: ‘pq’ was not declared in this scope
17 | pq.push(l[i]);
| ^~
deathray.cpp:27:11: error: ‘pq’ was not declared in this scope; did you mean ‘p’?
27 | while(!pq.empty()and pq.top()&l