Problem monsters3
User Biologyhater123
Submission Time 2025-12-01 16:12:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

monsters3.cpp: In function ‘int32_t main()’:
monsters3.cpp:16:32: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
16 | if (v[j] == 0){cp += dq[j]; ans++; continue;}
| ^~~
| abs
monsters3.cpp:23:10: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
23 | cout << ans;
| ^~~
| abs