Problem | monsters |
---|---|
User | Dynonychus |
Submission Time | 2024-01-08 21:11:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
monsters.cpp: In function ‘int main()’:
monsters.cpp:94:28: error: invalid use of member function ‘std::priority_queue<_Tp, _Sequence, _Compare>::const_reference std::priority_queue<_Tp, _Sequence, _Compare>::top() const [with _Tp = long long int; _Sequence = std::vector<long long int>; _Compare = std::greater<long long int>; std::priority_queue<_Tp, _Sequence, _Compare>::const_reference = const long long int&]’ (did you forget the ‘()’ ?)
94 | while(!pq.empty() && pq.top < 1) {
| ~~~^~~
| ()