记录详情

Wrong Answer

foo.c: In function 'isprime':
foo.c:23:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    if(a[i][j]>a[i][j+1] && a[i][j]>a[i+1][j] && a[i][j]>a[i-1][j] && a[i][j]>a[i][j-1] && a[i][j]>a[i-1][j+1] && a[i][j]>a[i-1][j-1] && a[i][j]>a[i+1][j-1] && a[i][j]>a[i+1][j+1])
    ^~
foo.c:25:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
     return cnt;   
     ^~~~~~
foo.c: In function 'main':
foo.c:8:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d",&m,&n);
  ^~~~~~~~~~~~~~~~~~~
foo.c:11:4: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    scanf("%d",&a[i][j]);
    ^~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 34, expect 36. 0ms 256.0 KiB
#2 Accepted 0ms 288.0 KiB
#3 Wrong Answer Read 383, expect 385. 1ms 808.0 KiB
#4 Wrong Answer Read 936, expect 939. 1ms 1.0 MiB
#5 Wrong Answer Read 2297, expect 2300. 3ms 1.34 MiB

信息

递交者
类型
递交
比赛
2021(四) 作业第三场:热身赛
语言
C
递交时间
2021-11-14 21:19:31
评测时间
2021-11-14 21:19:31
评测机
分数
20
总耗时
8ms
峰值内存
1.34 MiB