Compile Error

foo.cc:9:5: error: expected initializer before 'int'
    9 |     int i,j;
      |     ^~~
foo.cc:11:5: error: expected unqualified-id before 'for'
   11 |     for(i=0; i<M; i++)
      |     ^~~
foo.cc:11:14: error: 'i' does not name a type
   11 |     for(i=0; i<M; i++)
      |              ^
foo.cc:11:19: error: 'i' does not name a type
   11 |     for(i=0; i<M; i++)
      |                   ^
foo.cc:18:5: error: expected unqualified-id before 'for'
   18 |     for(j=0; j<N; j++)
      |     ^~~
foo.cc:18:14: error: 'j' does not name a type
   18 |     for(j=0; j<N; j++)
      |              ^
foo.cc:18:19: error: 'j' does not name a type
   18 |     for(j=0; j<N; j++)
      |                   ^
foo.cc:25:5: error: expected unqualified-id before 'for'
   25 |     for(i=0; i<M; i++)
      |     ^~~
foo.cc:25:14: error: 'i' does not name a type
   25 |     for(i=0; i<M; i++)
      |              ^
foo.cc:25:19: error: 'i' does not name a type
   25 |     for(i=0; i<M; i++)
      |                   ^
foo.cc:26:18: error: 'j' does not name a type
   26 |         for(j=0; j<N; j++)
      |                  ^
foo.cc:26:23: error: 'j' does not name a type
   26 |         for(j=0; j<N; j++)
      |                       ^
foo.cc:32:5: error: expected unqualified-id before 'if'
   32 |     if(!have)
      |     ^~
foo.cc:34:1: error: expected declaration before '}' token
   34 | }
      | ^
foo.cc: In function 'int main()':
foo.cc:44:5: error: 'MinMax' was not declared in this scope
   44 |     MinMax(A);
      |     ^~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1095 马鞍点
语言
C++
递交时间
2022-07-18 19:56:40
评测时间
2022-07-18 19:56:40
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes