Problem catfight
User sharelletqx
Submission Time 2026-05-16 11:11:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catfight.cpp: In function ‘int32_t main()’:
catfight.cpp:13:3: error: ‘csum’ was not declared in this scope
13 | csum+=v[i];
| ^~~~
catfight.cpp:18:3: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
18 | ans=max(ans,(int)dq.size());
| ^~~
| abs
catfight.cpp:20:8: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
20 | cout<<ans;
| ^~~
| abs