记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:15:12: warning: iteration 9 invokes undefined behavior [-Waggressive-loop-optimizations]
   cout<<a[i]<<" ";}
            ^
/in/foo.cc:14:11: note: within this loop
  for(i=0;i<=9;i++)
          ~^~~
/in/foo.cc:8:13: warning: iteration 9 invokes undefined behavior [-Waggressive-loop-optimizations]
       if(a[i]<min)
          ~~~^
/in/foo.cc:6:11: note: within this loop
  for(i=0;i<=9;i++)
          ~^~~
/in/foo.cc:13:36: warning: 'jmin' may be used uninitialized in this function [-Wmaybe-uninitialized]
  jh=a[jmax];a[jmax]=a[jmin];a[jmin]=jh;
                             ~~~~~~~^~~
/in/foo.cc:13:20: warning: 'jmax' may be used uninitialized in this function [-Wmaybe-uninitialized]
  jh=a[jmax];a[jmax]=a[jmin];a[jmin]=jh;
             ~~~~~~~^~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 208.0 KiB
#2 Accepted 1ms 220.0 KiB
#3 Accepted 1ms 220.0 KiB
#4 Accepted 1ms 216.0 KiB
#5 Accepted 1ms 208.0 KiB

信息

递交者
类型
递交
题目
P1005 涛不会无缝E
语言
C++
递交时间
2019-06-12 11:53:45
评测时间
2019-06-12 11:53:45
评测机
分数
100
总耗时
7ms
峰值内存
220.0 KiB