记录详情

Accepted

foo.c: In function 'FindiMinPos':
foo.c:24:16: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized]
   24 |         return index;
      |                ^~~~~
foo.c:5:18: note: 'index' was declared here
    5 |         int min, index;
      |                  ^~~~~
foo.c:18:28: warning: 'min' may be used uninitialized [-Wmaybe-uninitialized]
   18 |                         if (a[i] < min)
      |                            ^
foo.c:5:13: note: 'min' was declared here
    5 |         int min, index;
      |             ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 284.0 KiB
#2 Accepted 2ms 284.0 KiB
#3 Accepted 2ms 284.0 KiB
#4 Accepted 2ms 284.0 KiB
#5 Accepted 2ms 284.0 KiB

信息

递交者
类型
递交
题目
P3002 A9-2 数组中最小正数的下标
语言
C
递交时间
1 年前
评测时间
1 年前
评测机
分数
100
总耗时
10ms
峰值内存
284.0 KiB