Ad
  • Default User Avatar

    Array of results must be static.
    We need to return an array, so we are returning pointer to it. In order to do so we must declare an array inside function as static (because returning a pointer to a local variable is a bad idea).
    I forgot about that when I posted this solution, but tests checking only output arguments for some reason, and default returning value is void.