Problem lunchbox
User SMJ360
Submission Time 2026-03-03 16:03:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:9:14: error: expected ‘;’ before ‘int’
9 | cin >> k[i]
| ^
| ;
10 | int count = 0
| ~~~
lunchbox.cpp:14:3: error: expected ‘,’ or ‘;’ before ‘for’
14 | for (int i = 0; i < N; i++) {
| ^~~
lunchbox.cpp:14:29: error: expected ‘;’ before ‘)’ token
14 | for (int i = 0; i < N; i++) {
| ^
| ;
lunchbox.cpp:23:1: error: expected ‘}’ at end of input
23 | }
| ^
lunchbox.cpp:8:30: note: to match this ‘{’
8 | for (int i = 0; i < N; i++) {
| ^
lunchbox.cpp:23:1: error: expected ‘}’ at end of input
23 | }
| ^
lunchbox.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^