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

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:12:14: error: expected primary-expression before ‘)’ token
12 | if (pq[m]<=N;){
| ^
lunchbox.cpp:15:14: error: expected primary-expression before ‘)’ token
15 | for (pq[m]>N;)
| ^
lunchbox.cpp:15:14: error: expected ‘;’ before ‘)’ token
15 | for (pq[m]>N;)
| ^
| ;
lunchbox.cpp:16:9: error: expected primary-expression before ‘>’ token
16 | if (k => m-N;){
| ^
lunchbox.cpp:16:15: error: expected primary-expression before ‘)’ token
16 | if (k => m-N;){
| ^
lunchbox.cpp:19:10: error: request for member ‘pop_front’ in ‘pq’, which is of non-class type ‘int [m]’
19 | else pq.pop_front;{
| ^~~~~~~~~
lunchbox.cpp:20:16: error: expected ‘;’ before ‘size’
20 | cout << pq size;
| ^~~~~