Accepted

/in/foo.cc: In function 'int FindiMinPos(int*, int)':
/in/foo.cc:23:8: warning: 'xb' may be used uninitialized [-Wmaybe-uninitialized]
   23 | return xb;
      |        ^~
/in/foo.cc:5:9: note: 'xb' was declared here
    5 | int min,xb;
      |         ^~
/in/foo.cc:17:1: warning: 'min' may be used uninitialized [-Wmaybe-uninitialized]
   17 | if(a[i]<min&&a[i]>0)
      | ^~
/in/foo.cc:5:5: note: 'min' was declared here
    5 | int min,xb;
      |     ^~~
# 状态 耗时 内存占用
#1 Accepted 1ms 528.0 KiB
#2 Accepted 2ms 484.0 KiB
#3 Accepted 2ms 544.0 KiB
#4 Accepted 1ms 468.0 KiB
#5 Accepted 1ms 536.0 KiB

信息

递交者
类型
递交
题目
P1068 A9-2 数组中最小正数的下标
语言
C++
递交时间
2025-03-03 20:22:02
评测时间
2025-03-03 20:22:02
评测机
分数
100
总耗时
9ms
峰值内存
544.0 KiB