Problem | duckwar |
---|---|
User | PlayVoltz |
Submission Time | 2023-09-17 12:49:15 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
duckwar.cpp: In function ‘int32_t main()’:
duckwar.cpp:11:40: error: ‘mid’ was not declared in this scope; did you mean ‘fmid’?
11 | int low = 0, fmid = (low+t)/2, high = mid-1, ans = (t-fmid)*(k+fmid*u);
| ^~~
| fmid
duckwar.cpp:14:25: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
14 | if ((t-mid)*(k+mid*u)>ans){
| ^~~
| abs
duckwar.cpp:26:25: error: ‘ans’ was not declared in this scope; did you mean ‘ans2’?
26 | if ((t-mid)*(k+mid*u)>ans){
| ^~~
| ans2
duckwar.cpp:34:8: error: ‘ans’ was not declared in this scope; did you mean ‘ans2’?
34 | cout<<ans%MOD;
| ^~~
| ans2