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

Compile Error

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