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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Thanks, I', really into your katas! I hope that they will allow me to be better at programming, since I'm a total novice. Greetings.
So yeah, that's my code. When I run it on cpp.sh with a sample test string (std::string strng = "abcd\nEFGH\nijkl\nMNOP";) and replace k and n with constant numbers (just because these parameters aren't passed to any function), I get exactly the expected output.
My code displays the correct output in other compilers (for example c++ shell), but somehow I'm not able to get it working here. How can I solve it?