记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:5:30: warning: unused variable 't' [-Wunused-variable]
  int i,j=0,n,k,a[1000],cnt=0,t;
                              ^
foo.c:5:24: warning: unused variable 'cnt' [-Wunused-variable]
  int i,j=0,n,k,a[1000],cnt=0,t;
                        ^~~
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d",&n,&k);
  ^~~~~~~~~~~~~~~~~~~
foo.c:8:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&a[i]);
   ^~~~~~~~~~~~~~~~~
foo.c:28:8: warning: 'index' may be used uninitialized in this function [-Wmaybe-uninitialized]
  a[j]=a[index];
        ^
foo.c:22:19: note: 'index' was declared here
  int t,i,min=a[j],index;
                   ^~~~~
foo.c: In function 'min':
foo.c:28:8: warning: 'index' may be used uninitialized in this function [-Wmaybe-uninitialized]
  a[j]=a[index];
        ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 0ms 256.0 KiB
#2 Accepted 0ms 256.0 KiB
#3 Accepted 0ms 256.0 KiB
#4 Wrong Answer Read 4, expect 1. 0ms 256.0 KiB
#5 Accepted 0ms 256.0 KiB

信息

递交者
类型
递交
题目
DS8-2 选择排序的第k趟
语言
C
递交时间
2021-11-11 15:38:53
评测时间
2021-11-11 15:38:53
评测机
分数
80
总耗时
3ms
峰值内存
256.0 KiB