foo.cc:4:16: error: declaration of 'a' as array of references
4 | void hmax(int &a[][500],int i,int n){
| ^
foo.cc:4:24: error: expected ')' before ',' token
4 | void hmax(int &a[][500],int i,int n){
| ~ ^
| )
foo.cc:4:25: error: expected unqualified-id before 'int'
4 | void hmax(int &a[][500],int i,int n){
| ^~~
foo.cc:14:16: error: declaration of 'a' as array of references
14 | void lmin(int &a[][500],int j,int n){
| ^
foo.cc:14:24: error: expected ')' before ',' token
14 | void lmin(int &a[][500],int j,int n){
| ~ ^
| )
foo.cc:14:25: error: expected unqualified-id before 'int'
14 | void lmin(int &a[][500],int j,int n){
| ^~~
foo.cc: In function 'int main()':
foo.cc:31:3: error: 'lmax' was not declared in this scope; did you mean 'hmax'?
31 | lmax(a,i,m);
| ^~~~
| hmax
foo.cc:33:3: error: 'hmin' was not declared in this scope; did you mean 'lmin'?
33 | hmin(a,j,n);
| ^~~~
| lmin
[Hydro](https://hydro.ac)提供评测服务