记录详情

Wrong Answer

foo.c: In function 'FindMin':
foo.c:4:8: warning: unused variable 'j' [-Wunused-variable]
    4 |  int i,j,min=0;
      |        ^
foo.c: In function 'FindMinCount':
foo.c:14:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   14 |   if(a[FindMin(a,n)]==a[j]);
      |   ^~
foo.c:15:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   15 |    count++;
      |    ^~~~~
foo.c: In function 'main':
foo.c:23:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   23 |   scanf("%d%d",&n1,&n2);
      |   ^~~~~~~~~~~~~~~~~~~~~
foo.c:25:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   25 |   scanf("%d",&a[i]);
      |   ^~~~~~~~~~~~~~~~~
foo.c:27:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   27 |   scanf("%d",&b[j]);
      |   ^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 1, expect 2. 3ms 256.0 KiB

信息

递交者
类型
自测
题目
P1051 A9-5 数组中最小值的个数
语言
C
递交时间
2021-12-29 09:26:07
评测时间
2021-12-29 09:26:07
评测机
分数
0
总耗时
3ms
峰值内存
256.0 KiB