Problem monsters
User PerihelionfromAphelion
Submission Time 2026-09-14 23:27:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

monsters.cpp: In function ‘int32_t main()’:
monsters.cpp:22:14: error: cannot convert ‘std::priority_queue<long long int, std::vector<long long int>, std::greater<long long int> >::empty’ from type ‘bool (std::priority_queue<long long int, std::vector<long long int>, std::greater<long long int> >::)() const’ to type ‘bool’
22 | while (!pq.empty && pq.top() < mario) pq.pop();
| ^~~~~
monsters.cpp:22:14: error: in argument to unary !