foo.cc: In function 'int main()':
foo.cc:7:17: error: redeclaration of 'int m'
7 | int n,m,i,j,m,q;
| ^
foo.cc:7:11: note: 'int m' previously declared here
7 | int n,m,i,j,m,q;
| ^
foo.cc:8:6: error: redeclaration of 'int m'
8 | int m;
| ^
foo.cc:7:11: note: 'int m' previously declared here
7 | int n,m,i,j,m,q;
| ^
foo.cc:18:7: error: 'min' was not declared in this scope; did you mean 'std::min'?
18 | side=min(n,m);
| ^~~
| std::min
In file included from /usr/include/c++/9/algorithm:62,
from foo.cc:3:
/usr/include/c++/9/bits/stl_algo.h:3450:5: note: 'std::min' declared here
3450 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
foo.cc:36:7: error: 'k' was not declared in this scope
36 | for(k=0;k<=n-side;k++)
| ^
[Hydro](https://hydro.ac)提供评测服务