记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:5:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d",&m,&n);
  ^~~~~~~~~~~~~~~~~~~
foo.c:9:4: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    scanf("%d",&a[i][j]);
    ^~~~~~~~~~~~~~~~~~~~
foo.c:20:65: warning: array subscript is below array bounds [-Warray-bounds]
     if(j==n-1&&a[i][j]>a[i][j-1]&&a[i][j]>a[i+1][j-1]&&a[i][j]>a[i-1][j])
                                                                ~^~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 41, expect 36. 0ms 292.0 KiB
#2 Wrong Answer Read 35, expect 30. 0ms 292.0 KiB
#3 Wrong Answer Read 427, expect 385. 1ms 824.0 KiB
#4 Wrong Answer Read 1003, expect 939. 2ms 1.0 MiB
#5 Wrong Answer Read 2388, expect 2300. 3ms 1.348 MiB

信息

递交者
类型
递交
题目
4-4 有多少个山峰
比赛
2021(四) 作业第三场:热身赛
语言
C
递交时间
2021-11-15 12:35:37
评测时间
2021-11-15 12:35:37
评测机
分数
0
总耗时
8ms
峰值内存
1.348 MiB