Problem lunchbox
User seanLim
Submission Time 2024-10-23 22:11:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:17:17: error: expected ‘;’ before ‘<’ token
17 | for (int j=0, j<M; j++) {
| ^
| ;
lunchbox.cpp:17:17: error: expected primary-expression before ‘<’ token
lunchbox.cpp:17:18: error: ‘M’ was not declared in this scope
17 | for (int j=0, j<M; j++) {
| ^
lunchbox.cpp:25:10: error: ‘j’ was not declared in this scope
25 | cout << j;
| ^