Problem deathray
User blob
Submission Time 2023-11-22 13:28:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

deathray.cpp: In function ‘int main()’:
deathray.cpp:19:37: error: request for member ‘first’ in ‘pq.std::priority_queue<int>::top()’, which is of non-class type ‘const value_type’ {aka ‘const int’}
19 | while (!pq.empty() and pq.top().first < val) {
| ^~~~~
deathray.cpp:29:25: error: expected ‘;’ before ‘}’ token
29 | pq.push(L[number])
| ^
| ;
30 |
31 | }
| ~