/ Vijos /

记录详情

Wrong Answer

In file included from /nix/store/dm8k43g793kzl9rc4s12hh2fdwxwsb67-gcc/include/c++/12.3.0/algorithm:61,
                 from foo.cc:2:
In function 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __cxx11::basic_string<char>*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]',
    inlined from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __cxx11::basic_string<char>*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]' at /nix/store/dm8k43g793kzl9rc4s12hh2fdwxwsb67-gcc/include/c++/12.3.0/bits/stl_algo.h:1844:5,
    inlined from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __cxx11::basic_string<char>*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]' at /nix/store/dm8k43g793kzl9rc4s12hh2fdwxwsb67-gcc/include/c++/12.3.0/bits/stl_algo.h:1940:31,
    inlined from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __cxx11::basic_string<char>*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]' at /nix/store/dm8k43g793kzl9rc4s12hh2fdwxwsb67-gcc/include/c++/12.3.0/bits/stl_algo.h:1932:5,
    inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __cxx11::basic_string<char>*]' at /nix/store/dm8k43g793kzl9rc4s12hh2fdwxwsb67-gcc/include/c++/12.3.0/bits/stl_algo.h:4820:18,
    inlined from 'int main()' at foo.cc:37:9:
/nix/store/dm8k43g793kzl9rc4s12hh2fdwxwsb67-gcc/include/c++/12.3.0/bits/stl_algo.h:1849:32: warning: array subscript 17 is outside array bounds of 'std::string [12]' {aka 'std::__cxx11::basic_string<char> [12]'} [-Warray-bounds]
 1849 |           std::__insertion_sort(__first, __first + int(_S_threshold), __comp);
      |           ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:29:8: note: at offset 544 into object 'S' of size 384
   29 | string S[12];int STR[12];
      |        ^
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Wrong Answer Read 2, expect 0. 4ms 404.0 KiB
#3 Wrong Answer Read 2, expect 1. 4ms 412.0 KiB
#4 Wrong Answer Read 2, expect 1. 3ms 412.0 KiB
#5 Wrong Answer Read 2, expect 1. 3ms 328.0 KiB
#6 Accepted 4ms 412.0 KiB
#7 Accepted 3ms 396.0 KiB
#8 Accepted 3ms 412.0 KiB
#9 Accepted 3ms 328.0 KiB
#10 Accepted 3ms 412.0 KiB

信息

递交者
类型
递交
题目
P1709 滑动输入法
语言
C++
递交时间
2023-08-12 02:05:25
评测时间
2023-08-12 02:05:25
评测机
分数
60
总耗时
41ms
峰值内存
412.0 KiB