Problem deathray
User cheryltkx
Submission Time 2026-04-25 11:12:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

deathray.cpp: In function ‘int main()’:
deathray.cpp:8:7: error: two or more data types in declaration of ‘type name’
8 | int d=0;
| ^
deathray.cpp:8:9: error: template argument 3 is invalid
8 | int d=0;
| ^
deathray.cpp:11:3: error: ‘pq’ was not declared in this scope; did you mean ‘q’?
11 | pq.push(l[i]);
| ^~
| q
deathray.cpp:19:4: error: ‘d’ was not declared in this scope
19 | d+=p;
| ^
deathray.cpp:20:11: error: ‘pq’ was not declared in this scope; did you mean ‘p’?
20 | while(!pq.empty()and pq.top()<=d){
| ^~
| p
deathray.cpp:22:6: error: ‘dead’ was not declared in this scope
22 | dead ++;
| ^~~~
deathray.cpp:28:8: error: ‘pq’ was not declared in this scope; did you mean ‘q’?
28 | if (pq.empty()){
| ^~
| q
deathray.cpp:37:10: error: ‘dead’ was