Problem catlunch
User christal
Submission Time 2023-12-18 15:11:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catlunch.cpp: In function ‘int main()’:
catlunch.cpp:12:35: error: redeclaration of ‘std::priority_queue<int> satisf’
12 | priority_queue<int,vector<int> > satisf;
| ^~~~~~
catlunch.cpp:7:22: note: ‘std::priority_queue<int> satisf’ previously declared here
7 | priority_queue<int> satisf;
| ^~~~~~
catlunch.cpp:15:27: error: void value not ignored as it ought to be
15 | int current = satisf.pop();
| ~~~~~~~~~~^~