记录详情

Accepted

/in/foo.cc: In function 'int FindiMinPos(int*, int)':
/in/foo.cc:15:3: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(a[i]<min&&a[i]>0){
   ^~
/in/foo.cc:20:9: warning: 'xb' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return xb;
         ^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:15:3: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(a[i]<min&&a[i]>0){
   ^~
/in/foo.cc:6:6: note: 'min' was declared here
  int min,xb;
      ^~~
/in/foo.cc:15:3: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(a[i]<min&&a[i]>0){
   ^~
/in/foo.cc:6:6: note: 'min' was declared here
  int min,xb;
      ^~~
/in/foo.cc:31:27: warning: 'xb' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<FindiMinPos(a,n1)<<' '<<FindiMinPos(b,n2);
                           ^~~
/in/foo.cc:31:49: warning: 'xb' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<FindiMinPos(a,n1)<<' '<<FindiMinPos(b,n2);
                                                 ^
# 状态 耗时 内存占用
#1 Accepted 1ms 324.0 KiB

信息

递交者
类型
自测
题目
A9-2 数组中最小正数的下标
语言
C++
递交时间
2024-11-19 08:01:11
评测时间
2024-11-19 08:01:11
评测机
分数
10
总耗时
1ms
峰值内存
324.0 KiB