Problem monsters
User JIZHE
Submission Time 2023-12-30 16:59:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

monsters.cpp: In function ‘int main()’:
monsters.cpp:31:13: 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’
31 | while(!pq.empty && defeated > pq.top()) pq.pop();
| ^~~~~
monsters.cpp:31:13: error: in argument to unary !