Wrong Answer

In file included from /nix/store/1x1q5sqa0ilbi8fz7aayk02pjy5g7jhh-gcc-12.3.0/include/c++/12.3.0/algorithm:61,
                 from stdc++.h:65:
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/store/1x1q5sqa0ilbi8fz7aayk02pjy5g7jhh-gcc-12.3.0/include/c++/12.3.0/bits/stl_algo.h:1844:5,
    inlined from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = long long int*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]' at /nix/store/1x1q5sqa0ilbi8fz7aayk02pjy5g7jhh-gcc-12.3.0/include/c++/12.3.0/bits/stl_algo.h:1940:31,
    inlined from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = long long int*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]' at /nix/store/1x1q5sqa0ilbi8fz7aayk02pjy5g7jhh-gcc-12.3.0/include/c++/12.3.0/bits/stl_algo.h:1932:5,
    inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = long long int*]' at /nix/store/1x1q5sqa0ilbi8fz7aayk02pjy5g7jhh-gcc-12.3.0/include/c++/12.3.0/bits/stl_algo.h:4820:18,
    inlined from 'int main()' at foo.cc:11:6:
/nix/store/1x1q5sqa0ilbi8fz7aayk02pjy5g7jhh-gcc-12.3.0/include/c++/12.3.0/bits/stl_algo.h:1849:32: warning: array subscript 17 is outside array bounds of 'long long int [15]' [-Warray-bounds]
 1849 |           std::__insertion_sort(__first, __first + int(_S_threshold), __comp);
      |           ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:4:11: note: at offset 136 into object 'a' of size 120
    4 | long long a[15],b[25];
      |           ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 101, expect 51. 4ms 284.0 KiB
#2 Wrong Answer Read 65, expect 23. 5ms 412.0 KiB
#3 Wrong Answer Read 85, expect 27. 4ms 328.0 KiB
#4 Wrong Answer Read 40, expect 19. 3ms 412.0 KiB
#5 Wrong Answer Read 103, expect 27. 3ms 412.0 KiB
#6 Wrong Answer Read 119, expect 23. 3ms 412.0 KiB
#7 Wrong Answer Read 48, expect 12. 3ms 412.0 KiB
#8 Wrong Answer Read 66, expect 23. 3ms 412.0 KiB
#9 Wrong Answer Read 73, expect 32. 3ms 368.0 KiB
#10 Wrong Answer Read 33, expect 25. 4ms 368.0 KiB

信息

递交者
类型
递交
题目
P1618 优美连接(x11_5)
比赛
2023CSP热身2
语言
C++
递交时间
2023-10-01 20:50:48
评测时间
2023-10-01 20:50:48
评测机
分数
0
总耗时
40ms
峰值内存
412.0 KiB