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

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:13:14: error: expected primary-expression before ‘)’ token
13 | if (pq[m]<=N;) {
| ^
lunchbox.cpp:16:13: error: expected ‘;’ before ‘)’ token
16 | for (pq[m]>N)
| ^
| ;
lunchbox.cpp:17:15: error: expected primary-expression before ‘)’ token
17 | if (k => m-N;) {
| ^
lunchbox.cpp:17:15: error: expected ‘;’ before ‘)’ token
17 | if (k => m-N;) {
| ^
| ;
lunchbox.cpp:20:1: error: ‘else’ without a previous ‘if’
20 | else if (k < m-N;)
| ^~~~
lunchbox.cpp:20:18: error: expected primary-expression before ‘)’ token
20 | else if (k < m-N;)
| ^
lunchbox.cpp:21:5: error: request for member ‘pop_front’ in ‘pq’, which is of non-class type ‘int [m]’
21 | pq.pop_front;
| ^~~~~~~~~
lun