Ad
  • Default User Avatar

    it means you returned an object instead of a function. if a constructor returns a non-primitive, this is what new evaluates to; and functions are not primitives

  • Custom User Avatar

    OP solved it closing!

  • Custom User Avatar

    C version of the kata requires you to return a dynamically allocated, two-element array (which sucks, and I will probably change it, but that's how it is now).

    Do you return a pointer to a dynamically allocated buffer?