Problem lunchbox
User claireau
Submission Time 2023-11-09 11:29:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:12:4: error: expected ‘(’ before ‘pq’
12 | if pq[m]<=N; {
| ^~
| (
lunchbox.cpp:15:2: error: ‘else’ without a previous ‘if’
15 | else pq.pop_front(1);{
| ^~~~
lunchbox.cpp:15:10: error: request for member ‘pop_front’ in ‘pq’, which is of non-class type ‘int [m]’
15 | else pq.pop_front(1);{
| ^~~~~~~~~
lunchbox.cpp:16:16: error: expected ‘;’ before ‘size’
16 | cout << pq size;
| ^~~~~
| ;