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

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:13:4: error: expected ‘(’ before ‘pq’
13 | if pq[m]<=N; {
| ^~
| (
lunchbox.cpp:16:5: error: expected ‘(’ before ‘pq’
16 | for pq[m]>N;
| ^~
| (
lunchbox.cpp:17:2: error: expected primary-expression before ‘if’
17 | if k => m-N; {
| ^~
lunchbox.cpp:16:13: error: expected ‘;’ before ‘if’
16 | for pq[m]>N;
| ^
| ;
17 | if k => m-N; {
| ~~
lunchbox.cpp:17:2: error: expected primary-expression before ‘if’
17 | if k => m-N; {
| ^~
lunchbox.cpp:16:13: error: expected ‘)’ before ‘if’
16 | for pq[m]>N;
| ~~ ^
| )
17 | if k => m-N; {
| ~~
lunchbox.cpp:17:5: error: expected ‘(’ before ‘k’
17 | if k => m-N; {
| ^
| (
lunchb