Problem | monsters |
---|---|
User | Henries |
Submission Time | 2024-11-21 23:57:22 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
monsters.cpp: In function ‘void solve()’:
monsters.cpp:11:55: error: invalid use of member function ‘std::priority_queue<_Tp, _Sequence, _Compare>::const_reference std::priority_queue<_Tp, _Sequence, _Compare>::top() const [with _Tp = std::pair<long long int, long long int>; _Sequence = std::vector<std::pair<long long int, long long int> >; _Compare = std::greater<std::pair<long long int, long long int> >; std::priority_queue<_Tp, _Sequence, _Compare>::const_reference = const std::pair<long long int, long long int>&]’ (did you forget the ‘()’ ?)
11 | while (pq.top().first <= level && !pq.empty() && pq.top.second >= level){
| ~~~^~~
| ()
monsters.cpp:11:59: error: expected ‘)’ before ‘second’
11 | while (pq.top().first <= level && !pq.empty() && pq.top.second >= level){