Ad
  • Custom User Avatar

    my favorate kata answer I've ever seen lol

  • Custom User Avatar

    Maybe this test was translated from Java or C # and the translator is not very well versed in C ++.

  • Custom User Avatar

    You absolutely destroyed this kata, lol

  • Custom User Avatar

    XD cant stop to laugh)))

  • Custom User Avatar

    The macro was an ugly hack I did mostly due to being upset about the Javaisms of this Kata. I realize now it could have been done better by forwarding the call to my function in a Carboat class, or importing my function to a Carboat namespace.

    Also, you don't actually need using namespace std; to pass.

    When I submitted this solution it would come back with compile error if I didn't include that line. The hidden full test suite needed it. The "quick check" tests already included it, so it wasn't that.

  • Default User Avatar

    you do all that "in accordance with good C++ practice", only to make it "work" with a macro?

    Also, you don't actually need using namespace std; to pass. That's just for the "quick check" tests, but you can insert the line at the top of the test description.

    Came back to pledge allegiance to your "What is this? Java!?!" outrage. Yeah. And every passing by value etc. It's weird on a site like this.

  • Default User Avatar