Problem lunchbox
User Xavier
Submission Time 2025-06-18 15:24:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:7:49: error: expected ‘;’ before ‘int’
7 | ios_base::sync_with_stdio(false); cin.tie(0)
| ^
| ;
8 | int n, m; cin >> n >> m;
| ~~~
lunchbox.cpp:8:22: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
8 | int n, m; cin >> n >> m;
| ^
| yn
lunchbox.cpp:8:27: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
8 | int n, m; cin >> n >> m;
| ^
| tm
lunchbox.cpp:10:18: error: expected ‘;’ before ‘i’
10 | for (int i=0l i<m;i++){
| ^~
| ;
lunchbox.cpp:19:18: error: exp