Problem | deathray |
---|---|
User | blob |
Submission Time | 2023-11-22 13:15:32 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
deathray.cpp: In function ‘int main()’:
deathray.cpp:28:10: error: invalid use of non-static member function ‘void std::priority_queue<_Tp, _Sequence, _Compare>::pop() [with _Tp = std::pair<int, int>; _Sequence = std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >; _Compare = std::less<std::pair<int, int> >]’
28 | pq.pop;
| ~~~^~~
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from deathray.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:662:7: note: declared here
662 | pop()
| ^~~
deathray.cpp:30:33: error: expected ‘}’ before ‘]’ token
30 | pq.push({L[number], number]})
| ~ ^
deathray.cpp:30:33: error: expected ‘)’ before ‘]’ token
30 | pq.push({L[number], number]})
| ~