Problem | catlunch |
---|---|
User | SMILE |
Submission Time | 2024-07-06 20:28:50 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
catlunch.cpp: In function ‘int main()’:
catlunch.cpp:9:21: error: expected primary-expression before ‘,’ token
9 | for (int i = 0;i<n;,++){
| ^
catlunch.cpp:9:24: error: expected primary-expression before ‘)’ token
9 | for (int i = 0;i<n;,++){
| ^
catlunch.cpp:25:7: error: overloaded function with no contextual type information
25 | max.reward = max(max_reward, cur_reward);
| ^~~~~~
catlunch.cpp:31:12: error: cannot convert ‘std::priority_queue<int>::empty’ from type ‘bool (std::priority_queue<int>::)() const’ to type ‘bool’
31 | while(!pq.empty){
| ^~~~~
catlunch.cpp:31:12: error: in argument to unary !