Compile Error

foo.cc: In function 'int main()':
foo.cc:40:46: error: expected ']' before '}' token
   40 |      cout<<i+1<<" "<<index+1<<" "<<a[i][index}<<endl;
      |                                              ^
      |                                              ]
foo.cc:40:46: error: expected ';' before '}' token
   40 |      cout<<i+1<<" "<<index+1<<" "<<a[i][index}<<endl;
      |                                              ^
      |                                              ;
foo.cc:40:47: error: expected primary-expression before '<<' token
   40 |      cout<<i+1<<" "<<index+1<<" "<<a[i][index}<<endl;
      |                                               ^~
foo.cc:5:14: warning: unused variable 'max' [-Wunused-variable]
    5 |  int k,i,j,n,max,min,index;
      |              ^~~
foo.cc: At global scope:
foo.cc:45:2: error: expected unqualified-id before 'if'
   45 |  if(num==0)
      |  ^~
foo.cc:49:2: error: expected unqualified-id before 'return'
   49 |  return 0;
      |  ^~~~~~
foo.cc:50:1: error: expected declaration before '}' token
   50 | }
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1162 马鞍点
语言
C++
递交时间
2022-05-03 18:23:22
评测时间
2022-05-03 19:00:53
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes