Problem catfight
User PlayVoltz
Submission Time 2023-07-25 07:37:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catfight.cpp: In function ‘int main()’:
catfight.cpp:5:14: error: expected initializer before ‘fcount’
5 | int n, p, a fcount = 0;
| ^~~~~~
catfight.cpp:9:8: error: ‘a’ was not declared in this scope
9 | cin>>a;
| ^
catfight.cpp:14:25: error: expected ‘;’ before ‘)’ token
14 | for (int j=i; j<n, ++j){
| ^
| ;
catfight.cpp:21:3: error: ‘fcount’ was not declared in this scope; did you mean ‘count’?
21 | fcount = max(count, fcount);
| ^~~~~~
| count
catfight.cpp:23:8: error: ‘fcount’ was not declared in this scope
23 | cout<<fcount;
| ^~~~~~