Problem lunchbox
User JcYong
Submission Time 2024-06-20 13:45:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:4:22: error: expected unqualified-id before ‘,’ token
4 | priority_queue<int>, vector<int>, greater<int>> pq;
| ^
lunchbox.cpp:4:35: error: invalid declarator before ‘,’ token
4 | priority_queue<int>, vector<int>, greater<int>> pq;
| ^
lunchbox.cpp:4:48: error: invalid declarator before ‘>’ token
4 | priority_queue<int>, vector<int>, greater<int>> pq;
| ^~
lunchbox.cpp:19:5: error: ‘pq’ was not declared in this scope
19 | pq.push(n);
| ^~
lunchbox.cpp:22:9: error: ‘pq’ was not declared in this scope
22 | c = pq.top();
| ^~