foo.cc: In function 'int main()':
foo.cc:13:10: error: 'k' was not declared in this scope
13 | k++
| ^
foo.cc:16:11: error: 'k' was not declared in this scope
16 | if(k==0)
| ^
foo.cc:19:9: error: 'count' was not declared in this scope
19 | count++;
| ^~~~~
foo.cc:20:17: error: 'count' was not declared in this scope
20 | } if(count%5==0)
| ^~~~~
foo.cc:22:6: error: expected primary-expression before '}' token
22 | }cout<<endl;
| ^
foo.cc:8:11: warning: unused variable 'K' [-Wunused-variable]
8 | int K=0;
| ^
[Hydro](https://hydro.ac)提供评测服务