Problem tourist
User bluecloud0099
Submission Time 2026-02-09 20:21:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

tourist.cpp: In function ‘int main()’:
tourist.cpp:19:22: error: cannot convert ‘std::priority_queue<int, std::vector<int>, std::greater<int> >::empty’ from type ‘bool (std::priority_queue<int, std::vector<int>, std::greater<int> >::)() const’ to type ‘bool’
19 | else if (!pq.empty){
| ^~~~~
tourist.cpp:19:22: error: in argument to unary !