Notes
This function is in beta test. Please help improve it in the issues
here.
ASAN:DEADLYSIGNAL ================================================================= ==10554==ERROR: AddressSanitizer: stack-overflow on address 0x7ffcc7c85fe8 (pc 0x7fdf0f5f2e6f bp 0x7ffcc7c86850 sp 0x7ffcc7c85fb0 T0) #0 0x7fdf0f5f2e6e (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e6e) #1 0x7fdf0f2a479f 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 0x7fdf0f2a1465 in __dynamic_cast (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x91465) #3 0x7fdf0f3141ca 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 0x7fdf0f2bba9f 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
1410229087 1874512964 430196835 430196835 1438094767 467627935 1791930715 1603175461 1344448245 1793516632 1438094767 1793516632 515004171 1515923624 1342466754 193413795 1307894613 1042579436 1342466754