Ad
  • Custom User Avatar

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

  • Custom User Avatar

    Thanks for your comment!

  • 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

    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".