记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:29:4: error: 'cnt' was not declared in this scope; did you mean 'int'?
   29 |    cnt++;
      |    ^~~
      |    int
foo.cc:32:17: error: 'cnt' was not declared in this scope; did you mean 'int'?
   32 |  printf("%d\n", cnt );
      |                 ^~~
      |                 int
foo.cc:16:6: warning: unused variable 'flog' [-Wunused-variable]
   16 |  int flog = 0;
      |      ^~~~
foo.cc:6:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    6 |  scanf("%d%d", &n,&m );
      |  ~~~~~^~~~~~~~~~~~~~~~
foo.cc:11:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   11 |    scanf("%d", &arr[i][j]);
      |    ~~~~~^~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

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