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

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:16:13: error: expected ‘;’ before ‘)’ token
16 | for (pq[m]>N)
| ^
| ;
lunchbox.cpp:20:1: error: expected primary-expression before ‘else’
20 | else if pq.pop_front;{
| ^~~~
lunchbox.cpp:19:4: error: expected ‘;’ before ‘else’
19 | }
| ^
| ;
20 | else if pq.pop_front;{
| ~~~~
lunchbox.cpp:20:1: error: expected primary-expression before ‘else’
20 | else if pq.pop_front;{
| ^~~~
lunchbox.cpp:19:4: error: expected ‘)’ before ‘else’
19 | }
| ^
| )
20 | else if pq.pop_front;{
| ~~~~
lunchbox.cpp:16:5: note: to match this ‘(’
16 | for (pq[m]>N)
| ^
lunchbox.cpp:20:1: error: expected primary-expression before ‘else’
20 | else if pq.pop_front;{
| ^~~~
lunchbox.cpp:21:16: error: expected ‘;’ before ‘size’