Notes
This function is in beta test. Please help improve it in the issues
here.
ASAN:DEADLYSIGNAL ================================================================= ==11151==ERROR: AddressSanitizer: stack-overflow on address 0x7ffc6c910fa8 (pc 0x7f133a339e6f bp 0x7ffc6c911810 sp 0x7ffc6c910f70 T0) #0 0x7f133a339e6e (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x59e6e) #1 0x7f1339feb79f 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 0x7f1339fe8465 in __dynamic_cast (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x91465) #3 0x7f133a05b1ca 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 0x7f133a002a9f 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
782621129 1613289321 76041863 76041863 -1542713344 76041863 782621129 151956898 1704961213 248084418 -1938562288 1319510181 -1938562288 441257722 782621129 -1609039859 2055872929