foo.cc: In function 'int main()':
foo.cc:6:8: error: redeclaration of 'int n'
6 | int n,n,r;
| ^
foo.cc:6:6: note: 'int n' previously declared here
6 | int n,n,r;
| ^
foo.cc:7:7: error: 'm' was not declared in this scope
7 | cin>>m>>n;
| ^
foo.cc:17:9: error: expected ';' before 'int'
17 | cout<<n
| ^
| ;
18 | int m,n,k;
| ~~~
foo.cc:20:2: error: 'k' was not declared in this scope
20 | k=m;
| ^
foo.cc:16:6: warning: unused variable 't' [-Wunused-variable]
16 | int t=x%y/n;
| ^
[Hydro](https://hydro.ac)提供评测服务