Ad
  • Default User Avatar

    lol i don't remomber how but it did
    it's any easy problem it seems

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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 see unsupported type

  • Custom User Avatar

    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.

  • Default User Avatar

    It's you, not the Kata. If you have a specific question about your code, ask.

  • Custom User Avatar

    jupp i had my fun, but also very hard to reseach it tho.

  • Custom User Avatar

    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.

  • Custom User Avatar

    It seems you were using it wrong. I'm not that versed in C++ but read this

  • Custom User Avatar

    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.

  • Custom User Avatar

    Check for trailing spaces in your returned strings.

  • Custom User Avatar

    Lul, thanks! :3