Problem catfight
User Feiyang
Submission Time 2025-06-19 16:44:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catfight.cpp: In function ‘int main()’:
catfight.cpp:10:32: error: expected primary-expression before ‘)’ token
10 | for (long long i =0; i< a,i++>){
| ^
catfight.cpp:10:32: error: expected ‘;’ before ‘)’ token
10 | for (long long i =0; i< a,i++>){
| ^
| ;
catfight.cpp:12:6: error: expected initializer before ‘>>’ token
12 | cin>>d;
| ^~
catfight.cpp:13:3: error: ‘sum’ was not declared in this scope
13 | sum += d;
| ^~~
catfight.cpp:19:16: error: ‘macks’ was not declared in this scope
19 | if (c.size()>macks){
| ^~~~~
catfight.cpp:21:9: error: ‘macks’ was not declared in this scope
21 | cout<<macks;
| ^~~~~