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.
if it won't pass the random test... there is a bug in your code, not with the tests
You can use
std::cout
in your code to display whatever you want. Anyway I added also to my Kata logging what message and code are tested.BTW. The
n
is not a four digit number. It's a random number between 0 andINT_MAX
.Don't create an issue, if you are not sure, if the problem is in the kata or in your code.
As you can see, over 600 people solved it in C++. So I think the problem is in your code.