记录详情

Wrong Answer

/in/foo.c: In function 'min_index':
/in/foo.c:12:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(i=1;i<size;i++)
  ^~~
/in/foo.c:15:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   return min;
   ^~~~~~
/in/foo.c: In function 'main':
/in/foo.c:19:18: warning: unused variable 'i' [-Wunused-variable]
  int array[1000],i,size,index;
                  ^
/in/foo.c: In function 'get_array':
/in/foo.c:8:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/in/foo.c: In function 'min_index':
/in/foo.c:15:10: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
   return min;
          ^~~
/in/foo.c: In function 'main':
/in/foo.c:23:2: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
  printf("%d,%d",array[index],index);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 212.0 KiB

信息

递交者
类型
自测
题目
A9-5 数组中最小值的个数
语言
C
递交时间
2021-12-24 00:20:29
评测时间
2021-12-24 00:20:29
评测机
分数
0
总耗时
1ms
峰值内存
212.0 KiB