Problem lunchbox
User christal
Submission Time 2023-12-16 14:59:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:5:11: error: ‘i’ was not declared in this scope
5 | int N, m[i];
| ^
lunchbox.cpp:6:8: error: ‘k’ was not declared in this scope
6 | int i[k];
| ^
lunchbox.cpp:7:14: error: ‘m’ was not declared in this scope
7 | cin >> N >> m >> k;
| ^
lunchbox.cpp:8:19: error: expected ‘;’ before ‘)’ token
8 | for(i=0; i<m, i++){
| ^
| ;