记录详情

Wrong Answer

foo.c:2:1: warning: return type defaults to 'int' [-Wimplicit-int]
    2 | Shan(int a[500][500],int m,int n)
      | ^~~~
foo.c: In function 'main':
foo.c:26:4: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   26 |    scanf("%d",&a[i][j]);
      |    ^~~~~~~~~~~~~~~~~~~~
foo.c:25:3: warning: 'n' is used uninitialized in this function [-Wuninitialized]
   25 |   for(j=0 ; j<n ; j++)
      |   ^~~
foo.c:28:4: warning: 'm' is used uninitialized in this function [-Wuninitialized]
   28 |  k=Shan(a,m,n);
      |    ^~~~~~~~~~~
foo.c:22:26: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized]
   22 |  int a[500][500]={0},m,n,i,j,k;
      |                          ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 0, expect 36. 5ms 1.25 MiB
#2 Wrong Answer Read 0, expect 30. 3ms 1.25 MiB
#3 Wrong Answer Read 0, expect 385. 2ms 1.25 MiB
#4 Wrong Answer Read 0, expect 939. 3ms 1.25 MiB
#5 Wrong Answer Read 0, expect 2300. 2ms 1.25 MiB

信息

递交者
类型
递交
题目
4-4 有多少个山峰
比赛
2022春 C语言课程设计 作业3
语言
C
递交时间
2022-04-25 23:15:06
评测时间
2022-04-25 23:15:06
评测机
分数
0
总耗时
18ms
峰值内存
1.25 MiB