记录详情

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:15:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   15 |   if(a[FindMin(a,n)]==a[j]);
      |   ^~
foo.c:16:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   16 |    count++;
      |    ^~~~~
foo.c: In function 'main':
foo.c:24:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   24 |   scanf("%d%d",&n1,&n2);
      |   ^~~~~~~~~~~~~~~~~~~~~
foo.c:26:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   26 |   scanf("%d",&a[i]);
      |   ^~~~~~~~~~~~~~~~~
foo.c:28:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   28 |   scanf("%d",&b[j]);
      |   ^~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 1, expect 2. 4ms 256.0 KiB
#2 Wrong Answer Read 1, expect 2. 2ms 384.0 KiB
#3 Wrong Answer Read 1, expect 4. 4ms 384.0 KiB
#4 Wrong Answer Read 1, expect 8. 4ms 384.0 KiB
#5 Wrong Answer Read 1, expect 3. 3ms 384.0 KiB

信息

递交者
类型
递交
题目
P1051 A9-5 数组中最小值的个数
语言
C
递交时间
2021-12-29 23:39:35
评测时间
2021-12-29 23:39:35
评测机
分数
0
总耗时
19ms
峰值内存
384.0 KiB