记录详情

Wrong Answer

In file included from /nix/gcc-14.2.1.20250322/include/c++/14.2.1.20250322/string:51,
                 from /nix/gcc-14.2.1.20250322/include/c++/14.2.1.20250322/bits/locale_classes.h:40,
                 from /nix/gcc-14.2.1.20250322/include/c++/14.2.1.20250322/bits/ios_base.h:41,
                 from /nix/gcc-14.2.1.20250322/include/c++/14.2.1.20250322/ios:44,
                 from /nix/gcc-14.2.1.20250322/include/c++/14.2.1.20250322/ostream:40,
                 from iostream:41:
In static member function ‘static void std::__copy_move<false, false, std::random_access_iterator_tag>::__assign_one(_Tp*, _Up*) [with _Tp = int; _Up = const int]’,
    inlined from ‘static _Up* std::__copy_move<_IsMove, true, std::random_access_iterator_tag>::__copy_m(_Tp*, _Tp*, _Up*) [with _Tp = const int; _Up = int; bool _IsMove = false]’ at /nix/gcc-14.2.1.20250322/include/c++/14.2.1.20250322/bits/stl_algobase.h:455:20,
    inlined from ‘_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = false; _II = const int*; _OI = int*]’ at /nix/gcc-14.2.1.20250322/include/c++/14.2.1.20250322/bits/stl_algobase.h:521:30,
    inlined from ‘_OI std::__copy_move_a1(_II, _II, _OI) [with bool _IsMove = false; _II = const int*; _OI = int*]’ at /nix/gcc-14.2.1.20250322/include/c++/14.2.1.20250322/bits/stl_algobase.h:548:42,
    inlined from ‘_OI std::__copy_move_a(_II, _II, _OI) [with bool _IsMove = false; _II = const int*; _OI = int*]’ at /nix/gcc-14.2.1.20250322/include/c++/14.2.1.20250322/bits/stl_algobase.h:555:31,
    inlined from ‘_OI std::copy(_II, _II, _OI) [with _II = const int*; _OI = int*]’ at /nix/gcc-14.2.1.20250322/include/c++/14.2.1.20250322/bits/stl_algobase.h:651:7,
    inlined from ‘static _ForwardIterator std::__uninitialized_copy<true>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = const int*; _ForwardIterator = int*]’ at /nix/gcc/include/c++/14.2.1.20250322/bits/stl_uninitialized.h:147:27,
    inlined from ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = const int*; _ForwardIterator = int*]’ at /nix/gcc/include/c++/14.2.1.20250322/bits/stl_uninitialized.h:185:15,
    inlined from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = const int*; _ForwardIterator = int*; _Tp = int]’ at /nix/gcc/include/c++/14.2.1.20250322/bits/stl_uninitialized.h:373:37,
    inlined from ‘void std::vector<_Tp, _Alloc>::_M_assign_aux(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = const int*; _Tp = int; _Alloc = std::allocator<int>]’ at /nix/gcc/include/c++/14.2.1.20250322/bits/vector.tcc:352:35,
    inlined from ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]’ at /nix/gcc/include/c++/14.2.1.20250322/bits/stl_vector.h:790:21,
    inlined from ‘std::vector<int> MergeSubs(std::vector<int>)’ at foo.cc:15:26:
/nix/gcc-14.2.1.20250322/include/c++/14.2.1.20250322/bits/stl_algobase.h:413:17: warning: array subscript ‘const int[0]’ is partly outside array bounds of ‘const int [1]’ [-Warray-bounds=]
  413 |         { *__to = *__from; }
      |           ~~~~~~^~~~~~~~~
foo.cc: In function ‘std::vector<int> MergeSubs(std::vector<int>)’:
foo.cc:15:26: note: at offset [1, 3] into object ‘<anonymous>’ of size 4
   15 |             subSeq = {num};
      |                          ^
# 状态 耗时 内存占用
#1 Wrong Answer Standard answer longer than user output. 2ms 504.0 KiB
#2 Wrong Answer Standard answer longer than user output. 1ms 504.0 KiB
#3 Wrong Answer Standard answer longer than user output. 2ms 504.0 KiB
#4 Wrong Answer Standard answer longer than user output. 3ms 504.0 KiB
#5 Wrong Answer Standard answer longer than user output. 3ms 504.0 KiB

信息

递交者
类型
递交
题目
A10-2 有序子序列的合并
语言
C++
递交时间
2025-05-14 12:34:07
评测时间
2025-05-14 12:34:07
评测机
分数
0
总耗时
13ms
峰值内存
504.0 KiB