Problem lunchbox
User Zaydluq
Submission Time 2026-06-23 16:59:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:12:14: error: expected ‘;’ before ‘}’ token
12 | cin >> k[i]
| ^
| ;
13 | }
| ~
lunchbox.cpp:17:12: error: expected ‘;’ before ‘<’ token
17 | for (int i < 0; i < m; i++){
| ^~
| ;
lunchbox.cpp:17:13: error: expected primary-expression before ‘<’ token
17 | for (int i < 0; i < m; i++){
| ^
lunchbox.cpp:17:22: error: ‘m’ was not declared in this scope
17 | for (int i < 0; i < m; i++){
| ^
lunchbox.cpp:17:23: error: expected ‘)’ before ‘;’ token
17 | for (int i < 0; i < m; i++){
| ~ ^
| )
lunchbox.cpp:17:25: error: ‘i’ was not declared in this scope
17 | for (int i < 0; i < m; i++){
|