Problem lunchbox
User LYM2025
Submission Time 2025-08-21 14:24:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:4:13: error: expected initializer before ‘.’ token
4 | long long N.m;
| ^
lunchbox.cpp:5:7: error: ‘N’ was not declared in this scope
5 | cin>>N>>m;
| ^
lunchbox.cpp:5:10: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
5 | cin>>N>>m;
| ^
| tm
lunchbox.cpp:13:15: error: ‘l’ was not declared in this scope
13 | for(int j;j<l;j++){
| ^
lunchbox.cpp:14:11: error: ‘i’ was not declared in this scope
14 | sum+=v[i];
| ^