Problem bingeeating
User Josh28acc2
Submission Time 2025-01-08 13:15:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bingeeating.cpp: In function ‘void solve()’:
bingeeating.cpp:83:9: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
83 | ans += min(m, k)*(v[i]+extra);
| ^~~
| abs
bingeeating.cpp:83:27: error: ‘v’ was not declared in this scope
83 | ans += min(m, k)*(v[i]+extra);
| ^
bingeeating.cpp:83:29: error: ‘i’ was not declared in this scope
83 | ans += min(m, k)*(v[i]+extra);
| ^
bingeeating.cpp:83:32: error: ‘extra’ was not declared in this scope; did you mean ‘extern’?
83 | ans += min(m, k)*(v[i]+extra);
| ^~~~~
| extern
bingeeating.cpp:87:13: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
87 | cout << ans;
| ^~~
| abs