记录详情

Compile Error

foo.c:57:9: error: expected declaration specifiers or '...' before string constant
  printf("%d\n", cnt);
         ^~~~~~
foo.c:57:17: error: unknown type name 'cnt'; did you mean 'int'?
  printf("%d\n", cnt);
                 ^~~
                 int
foo.c:59:2: error: expected identifier or '(' before 'return'
  return 0;
  ^~~~~~
foo.c:60:1: error: expected identifier or '(' before '}' token
 }
 ^
foo.c: In function 'main':
foo.c:10:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d", &m, &n); 
  ^~~~~~~~~~~~~~~~~~~~~~
foo.c:16:4: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    scanf("%d", &a[i][j]); 
    ^~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
4-5 有几个鞍点
比赛
2021(四) 作业第三场:热身赛
语言
C
递交时间
2021-11-14 23:12:58
评测时间
2021-11-14 23:12:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes