记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
自测
题目
4-5 有几个鞍点
语言
C++
递交时间
2022-08-07 20:33:31
评测时间
2022-08-07 20:33:31
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes