Notes
This function is in beta test. Please help improve it in the issues
here.
ASAN:DEADLYSIGNAL ================================================================= ==11149==ERROR: AddressSanitizer: stack-overflow on address 0x7ffcf7101fc8 (pc 0x7f4d6259be6f bp 0x7ffcf7102830 sp 0x7ffcf7101f90 T0) #0 0x7f4d6259be6e (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e6e) #1 0x7f4d6224d79f in __cxxabiv1::__vmi_class_type_info::__do_dyncast(long, __cxxabiv1::__class_type_info::__sub_kind, __cxxabiv1::__class_type_info const*, void const*, __cxxabiv1::__class_type_info const*, void const*, __cxxabiv1::__class_type_info::__dyncast_result&) const (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x9479f) #2 0x7f4d6224a465 in __dynamic_cast (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x91465) #3 0x7f4d622bd1ca in std::ctype<char> const& std::use_facet<std::ctype<char> >(std::locale const&) (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x1041ca) #4 0x7f4d62264a9f in std::basic_istream<char, std::char_traits<char> >& std::operator>><char, std::char_traits<char>, std::allocator<char> >(std::basic_i
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, the main problem you meet now is Runtime Error. And the exit code of your program is 1, which should be 0.
Please double check your code to solve this problem and try again.
Your Answer
JOJ Answer
1100217460 -2147473392 1113311975 991126037 1823808463 -455709487 1338111506 1705195028 -1609537983 635844959 1726926833 1100217460 1566602227 1331103719 1688584211 2126042410 635844959 1055424873 -455709487