Accepted

/in/foo.cc: In function 'int FindiMinPos(int*, int)':
/in/foo.cc:17:1: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
 if(a[i]<min&&a[i]>0)
 ^~
/in/foo.cc:23:8: warning: 'xb' may be used uninitialized in this function [-Wmaybe-uninitialized]
 return xb;
        ^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:17:1: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
 if(a[i]<min&&a[i]>0)
 ^~
/in/foo.cc:5:5: note: 'min' was declared here
 int min,xb;
     ^~~
/in/foo.cc:17:1: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
 if(a[i]<min&&a[i]>0)
 ^~
/in/foo.cc:5:5: note: 'min' was declared here
 int min,xb;
     ^~~
/in/foo.cc:34:26: warning: 'xb' may be used uninitialized in this function [-Wmaybe-uninitialized]
 cout<<FindiMinPos(a,n1)<<' '<<FindiMinPos(b,n2);
                          ^~~
/in/foo.cc:34:48: warning: 'xb' may be used uninitialized in this function [-Wmaybe-uninitialized]
 cout<<FindiMinPos(a,n1)<<' '<<FindiMinPos(b,n2);
                                                ^
# 状态 耗时 内存占用
#1 Accepted 2ms 340.0 KiB
#2 Accepted 1ms 356.0 KiB
#3 Accepted 1ms 376.0 KiB
#4 Accepted 1ms 376.0 KiB
#5 Accepted 1ms 336.0 KiB

信息

递交者
类型
递交
题目
P1068 A9-2 数组中最小正数的下标
语言
C++
递交时间
2023-10-28 18:58:27
评测时间
2023-10-28 18:58:27
评测机
分数
100
总耗时
9ms
峰值内存
376.0 KiB