记录详情

Compile Error

/in/foo.cc:15:1: error: expected ',' or ';' before 'int'
 int n,m;
 ^~~
/in/foo.cc: In function 'bool check(int, int)':
/in/foo.cc:20:12: error: 'n' was not declared in this scope
  if(x<1||x>n||y<1||y>m) return false;
            ^
/in/foo.cc:20:22: error: 'm' was not declared in this scope
  if(x<1||x>n||y<1||y>m) return false;
                      ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:36:7: error: 'n' was not declared in this scope
  cin>>n>>m;
       ^
/in/foo.cc:36:10: error: 'm' was not declared in this scope
  cin>>n>>m;
          ^

信息

递交者
类型
自测
题目
2-7 有几个岛屿
语言
C++
递交时间
2018-12-12 14:04:56
评测时间
2018-12-12 14:05:13
评测机
分数
0
总耗时
336ms
峰值内存
42.359 MiB