Problem catlunch
User brat
Submission Time 2025-10-18 01:19:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catlunch.cpp: In function ‘int main()’:
catlunch.cpp:25:10: error: cannot convert ‘std::priority_queue<long long int>::empty’ from type ‘bool (std::priority_queue<long long int>::)() const’ to type ‘bool’
25 | if (!pq.empty) {
| ^~~~~
catlunch.cpp:25:10: error: in argument to unary !
catlunch.cpp:26:20: error: expected primary-expression before ‘)’ token
26 | if (pq.top() > 0)) {ans += pq.top();}
| ^