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