记录详情

Accepted

/in/foo.cc: In function 'int FindiMinPos(int, int*)':
/in/foo.cc:16:4: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
    if(a[i]<k)
    ^~
/in/foo.cc:21:9: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return j;
         ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:16:4: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
    if(a[i]<k)
    ^~
/in/foo.cc:6:10: note: 'k' was declared here
  int i,j,k;
          ^
/in/foo.cc:16:4: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
    if(a[i]<k)
    ^~
/in/foo.cc:6:10: note: 'k' was declared here
  int i,j,k;
          ^
/in/foo.cc:36:27: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<FindiMinPos(n1,a)<<" "<<FindiMinPos(n2,b);
                           ^~~
/in/foo.cc:36:49: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<FindiMinPos(n1,a)<<" "<<FindiMinPos(n2,b);
                                                 ^
# 状态 耗时 内存占用
#1 Accepted 1ms 212.0 KiB

信息

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