Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
add
<< std::flush
after the values you print. flushing the standard output ensures you will see it even if the program crashesThis part, and specifically the
READ
at0x000000000000
, usually means that the error is caused by reading a past-the-end iterator:Note that in this kata it is possible to receive
""
as an input (don;t ask me why), and it should be treated as"0"
.Ideally, failed tests would present the input which made them fail. But if they do not, you can try this: https://docs.codewars.com/training/training-example#debugging-a-kata
[[1, 2], [0, 2], [0, 2]]
is what your solution returned. If you want to see the input, you can print it.All correct, but the test input is
987654310
.Cheers :)
It is not the next greatest compared to the test input...