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.
That's what happens when your code segfaults on Codewars
There is no need for caching...
This comment is hidden because it contains spoiler information about the solution
When I run test suite I get Passed:0 Failed:0 and sumAnn_tests passed. Test runs sumAnn with parameter n up to 100000. Other tests don't execute. This behaviour appeared when I began cashing results of functions john(long long n) and ann(long long n) in static members of Johnann class. Example tests runs well.
Before cashing I couldn't pass tests because low perfomance of my algorythm.
My code in the below message.
Found a bug in my code and fixed it and then all tests passed successfully.
Thanks for reply.
Did you read a post below:
I don't know why but the C++ Unit tests returns "Unsupported type" when your test fails.
Print the input and your results and you will see that they are wrong hence the "unsupported type". Your solution doesn't pass the first fixed test. Sorry but I am not the C++ Unit tests writer:-(
This comment is hidden because it contains spoiler information about the solution
Have troubles with an [Unsupported type] C++
I had the same problem using C++