Problem f7
User LiuZq
Submission Time 2025-01-11 14:56:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

f7.cpp: In function ‘int main()’:
f7.cpp:19:31: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
19 | if (v[i] + n >= maxi) ans++;
| ^~~
| abs
f7.cpp:21:13: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
21 | cout << ans;
| ^~~
| abs