| Problem | deathray |
|---|---|
| User | sharelletqx |
| Submission Time | 2026-04-25 11:13:36 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
deathray.cpp: In function ‘int main()’:
deathray.cpp:8:46: error: template argument 3 is invalid
8 | priority_queue<int,vector<int>,greater<int> pq;
| ^~
deathray.cpp:12:3: error: ‘pq’ was not declared in this scope; did you mean ‘q’?
12 | pq.push(l[i]);
| ^~
| q
deathray.cpp:22:11: error: ‘pq’ was not declared in this scope; did you mean ‘p’?
22 | while(!pq.empty() and pq.top()<=d){
| ^~
| p
deathray.cpp:30:7: error: ‘pq’ was not declared in this scope; did you mean ‘q’?
30 | if(pq.empty()){
| ^~
| q