Problem lunchbox
User shaokai348
Submission Time 2025-03-02 15:51:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:8:2: error: expected ‘,’ or ‘;’ before ‘for’
8 | for (int i = 0; i < b; i++){
| ^~~
lunchbox.cpp:8:18: error: ‘i’ was not declared in this scope
8 | for (int i = 0; i < b; i++){
| ^
lunchbox.cpp:18:19: error: expected ‘;’ at end of input
18 | cout << d << endl
| ~~~~^
| ;
lunchbox.cpp:18:15: error: expected ‘}’ at end of input
18 | cout << d << endl
| ^~~~
lunchbox.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^