Problem catlunch
User laravansteen
Submission Time 2025-05-24 09:56:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catlunch.cpp: In function ‘int32_t main()’:
catlunch.cpp:19:4: error: expected ‘;’ before ‘cur_reward’
19 | 11 cur_reward=0,max_reward=0;
| ^~~~~~~~~~~
| ;
catlunch.cpp:21:3: error: ‘cur_reward’ was not declared in this scope
21 | cur_reward+=pq.top();
| ^~~~~~~~~~
catlunch.cpp:22:3: error: ‘max_reward’ was not declared in this scope
22 | max_reward=max(max_reward,cur_reward);
| ^~~~~~~~~~
catlunch.cpp:28:3: error: ‘cur_reward’ was not declared in this scope
28 | cur_reward+=pq.top();
| ^~~~~~~~~~
catlunch.cpp:29:3: error: ‘max_reward’ was not declared in this scope
29 | max_reward=max(max_reward,cur_reward);
| ^~~~~~~~~~
catlunch.cpp:32:8: error: ‘max_reward’ was not declared in this scope
32 | cout<<max_reward;
| ^~~~~~~~~~