Accepted

In file included from /nix/gcc/include/c++/15.3.0/algorithm:63,
                 from foo.cc:2:
In function ‘void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]’,
    inlined from ‘void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]’ at /nix/gcc/include/c++/15.3.0/bits/stl_algo.h:1812:5,
    inlined from ‘void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]’ at /nix/gcc/include/c++/15.3.0/bits/stl_algo.h:1908:31,
    inlined from ‘void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]’ at /nix/gcc/include/c++/15.3.0/bits/stl_algo.h:1900:5,
    inlined from ‘void std::sort(_RAIter, _RAIter) [with _RAIter = int*]’ at /nix/gcc/include/c++/15.3.0/bits/stl_algo.h:4841:18,
    inlined from ‘int main()’ at foo.cc:15:6:
/nix/gcc/include/c++/15.3.0/bits/stl_algo.h:1817:32: warning: array subscript 16 is outside array bounds of ‘int [11]’ [-Warray-bounds=]
 1817 |           std::__insertion_sort(__first, __first + int(_S_threshold), __comp);
      |           ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function ‘int main()’:
foo.cc:4:5: note: at offset 64 into object ‘a’ of size 44
    4 | int a[11],b[11];
      |     ^
# 状态 耗时 内存占用
#1 Accepted 2ms 508.0 KiB
#2 Accepted 3ms 768.0 KiB
#3 Accepted 3ms 768.0 KiB
#4 Accepted 2ms 508.0 KiB
#5 Accepted 3ms 376.0 KiB
#6 Accepted 2ms 512.0 KiB
#7 Accepted 2ms 512.0 KiB
#8 Accepted 2ms 512.0 KiB
#9 Accepted 2ms 512.0 KiB
#10 Accepted 2ms 512.0 KiB

信息

递交者
类型
递交
题目
P3091 整数排序 pta202307T1
语言
C++
递交时间
2026-10-16 09:05:29
评测时间
2026-10-16 09:05:29
评测机
分数
100
总耗时
27ms
峰值内存
768.0 KiB