Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:15: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations]
   cout<<a[i]<<' ';
               ^~~
/in/foo.cc:9:15: note: within this loop
  for(int i=1;i<=3;i++)
              ~^~~
/in/foo.cc:8:6: warning: array subscript is above array bounds [-Warray-bounds]
  sort(a+1,a+3+1,greater<int>());
  ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:8:6: warning: array subscript is above array bounds [-Warray-bounds]
/in/foo.cc:8:6: warning: array subscript is above array bounds [-Warray-bounds]
# 状态 耗时 内存占用
#1 Accepted 1ms 388.0 KiB
#2 Accepted 1ms 344.0 KiB
#3 Accepted 1ms 352.0 KiB
#4 Accepted 1ms 376.0 KiB
#5 Accepted 1ms 360.0 KiB

信息

递交者
类型
递交
题目
P1626 A1-1 分支结构练习:三数排序
语言
C++
递交时间
2024-05-10 21:44:34
评测时间
2024-05-10 21:44:34
评测机
分数
100
总耗时
7ms
峰值内存
388.0 KiB