Problem catlunch
User JJ1234
Submission Time 2024-12-20 23:01:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catlunch.cpp: In function ‘int main()’:
catlunch.cpp:17:15: error: ‘class std::priority_queue<long long int>’ has no member named ‘topmax’
17 | if(pq.topmax += pq.top();
| ^~~~~~
catlunch.cpp:18:17: error: expected ‘)’ before ‘;’ token
18 | pq.pop();
| ^
| )
catlunch.cpp:17:11: note: to match this ‘(’
17 | if(pq.topmax += pq.top();
| ^
catlunch.cpp:18:15: error: could not convert ‘pq.std::priority_queue<long long int>::pop()’ from ‘void’ to ‘bool’
18 | pq.pop();
| ~~~~~~^~
| |
| void