Ad
  • Default User Avatar

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

  • Default User Avatar

    Thanks for your comment!

  • Default User Avatar

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

  • Custom User Avatar

    for type declaration see my solution

    You have to post your solution here if you want anybody to see it.

    why without overloading the operator<< function for std::ostream and my type it's failing to compile? It's says that there is ambiguous overload resolution...

    Because the compiler doesn't know what to do with your type, and doesn't know which other type to convert it to?

  • Custom User Avatar

    Not an issue.

  • Default User Avatar

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

  • Default User Avatar

    It's probably too late, but in first place read more precisely into the description, because currently your solution is wrong.

  • Default User Avatar

    C++ version of kata should use more modern and familiar type for passing board to function. Passing fixed arrays is very unusual to C++, and if we taking into account that it is actually a pointer to fixed array it becomes even more non-obvious, unsafe and inconvenient to work with. I think there is should be some container from STL, such as std::vector< std::vector< unsigned int > > or std::array< std::array< unsigned int, 3 >, 3 >.

  • Default User Avatar

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

  • Default User Avatar

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

  • Default User Avatar

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

  • Custom User Avatar

    2524 C++ completions

    The C++ version is definitely not broken. You can print the inputs and debug your solution yourself, and if that doesn't help, you should post your code here with a spoiler tag - nobody will be able to help you if all you say is "please tell me what I'm missing".

  • Default User Avatar

    I think this kata is completely broken for C++.

    I tried two very diffirent approaches, and they both don't pass tests and return false in some case(s), where expected true (but they both pass random tests though and any test on my local machine).
    And yes, I know about elements ordering, possible values duplications(which was not obvious from instructions) and negative elements appearing(which was absolutely surprising for me and broke up one of my solutions at first)

    Maybe I'm missing some very important detail, that not are obvious from instructions.
    I would appreciate if you point me on this detail, but right now I think this kata is broken in some strange way. And I can describe solutions in further details or post code of them, if someone needed