记录详情

Accepted

/in/foo.cc: In function 'int FindiMinPos(int*, int)':
/in/foo.cc:16:14: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if (a[i]>0 && a[i]<min)
       ~~~~~~~^~~~~~~~~~~
/in/foo.cc:20:9: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return k;
         ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:16:14: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if (a[i]>0 && a[i]<min)
       ~~~~~~~^~~~~~~~~~~
/in/foo.cc:6:8: note: 'min' was declared here
  int k,min;
        ^~~
/in/foo.cc:16:14: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if (a[i]>0 && a[i]<min)
       ~~~~~~~^~~~~~~~~~~
/in/foo.cc:6:8: note: 'min' was declared here
  int k,min;
        ^~~
/in/foo.cc:34:11: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<m<<" "<<n;
           ^~~
/in/foo.cc:34:17: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<m<<" "<<n;
                 ^
# 状态 耗时 内存占用
#1 Accepted 1ms 348.0 KiB
#2 Accepted 1ms 344.0 KiB
#3 Accepted 1ms 340.0 KiB
#4 Accepted 1ms 356.0 KiB
#5 Accepted 1ms 348.0 KiB

信息

递交者
类型
递交
题目
A9-2 数组中最小正数的下标
比赛
2024-3-22 信息教师练习赛(3)
语言
C++
递交时间
2024-03-27 09:24:23
评测时间
2024-03-27 09:24:23
评测机
分数
100
总耗时
8ms
峰值内存
356.0 KiB