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.
lol i don't remomber how but it did
it's any easy problem it seems
This comment is hidden because it contains spoiler information about the solution
C++ version is not really bugged, but it lacks a stringizer for
std::pair<int, int>
which testing framework requires to compose assertion messages, that's why you seeunsupported type
So can you answer his question? I haven't seen anything like that before..
Edit: nvm, the issue is too vague, but it's worth investigating.
It's you, not the Kata. If you have a specific question about your code, ask.
jupp i had my fun, but also very hard to reseach it tho.
I just solved this kata in C++ and it seems to work for me.
When it comes to printing to the console, some (all?) languages in CW setup have the problem that leading/trailing/adjacent spaces are not rendered in tests output panel correctly, so your output migh look like correct, but it probably is not. Try replacing all spaces to some other character (for example
-
) just before printing.Still, I believe problem is with your solution, and not the kata.
It seems you were using it wrong. I'm not that versed in C++ but read this
Use this:
cout << "*" + result + "*";
your string has indeed a trailing space. And next time post your code, not an image (I had to rewrite all your code to test it). Use markdown formatting and mark your post as having spoiler content.Check for trailing spaces in your returned strings.
Lul, thanks! :3