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

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:15:5: error: expected ‘(’ before ‘pq’
15 | for pq[m]>N;
| ^~
| (
lunchbox.cpp:16:2: error: expected primary-expression before ‘if’
16 | if k => m-N;{
| ^~
lunchbox.cpp:15:13: error: expected ‘;’ before ‘if’
15 | for pq[m]>N;
| ^
| ;
16 | if k => m-N;{
| ~~
lunchbox.cpp:16:2: error: expected primary-expression before ‘if’
16 | if k => m-N;{
| ^~
lunchbox.cpp:15:13: error: expected ‘)’ before ‘if’
15 | for pq[m]>N;
| ~~ ^
| )
16 | if k => m-N;{
| ~~
lunchbox.cpp:16:5: error: expected ‘(’ before ‘k’
16 | if k => m-N;{
| ^
| (
lunchbox.cpp:19:2: error: ‘else’ without a previous ‘if’
19 | else pq.pop_front;{
| ^~~~
lunchbox.cpp:19:10