Accepted

In file included from /nix/gcc-13.2.0/include/c++/13.2.0/algorithm:61,
                 from stdc++.h:51:
In function ‘void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = long long int*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]’,
    inlined from ‘void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = long long int*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]’ at /nix/gcc-13.2.0/include/c++/13.2.0/bits/stl_algo.h:1854:5,
    inlined from ‘void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = long long int*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]’ at /nix/gcc-13.2.0/include/c++/13.2.0/bits/stl_algo.h:1950:31,
    inlined from ‘void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = long long int*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]’ at /nix/gcc-13.2.0/include/c++/13.2.0/bits/stl_algo.h:1942:5,
    inlined from ‘void std::sort(_RAIter, _RAIter) [with _RAIter = long long int*]’ at /nix/gcc-13.2.0/include/c++/13.2.0/bits/stl_algo.h:4861:18,
    inlined from ‘int main()’ at foo.cc:11:6:
/nix/gcc-13.2.0/include/c++/13.2.0/bits/stl_algo.h:1859:32: warning: array subscript 17 is outside array bounds of ‘long long int [11]’ [-Warray-bounds=]
 1859 |           std::__insertion_sort(__first, __first + int(_S_threshold), __comp);
      |           ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function ‘int main()’:
foo.cc:4:7: note: at offset 136 into object ‘a’ of size 88
    4 | int n,a[11];
      |       ^
# 状态 耗时 内存占用
#1 Accepted 3ms 536.0 KiB
#2 Accepted 3ms 328.0 KiB

信息

递交者
类型
递交
题目
P2489 数组元素的排序
比赛
春季班高级3.24
语言
C++
递交时间
2024-03-25 18:55:46
评测时间
2024-03-25 18:55:46
评测机
分数
100
总耗时
6ms
峰值内存
536.0 KiB