you return the address of a local (stack-allocated) array, as the warning tells you:
warning: address of stack memory associated with local variable 'result' returned [-Wreturn-stack-address]
This comment is hidden because it contains spoiler information about the solution
Loading collection data...
you return the address of a local (stack-allocated) array, as the warning tells you:
This comment is hidden because it contains spoiler information about the solution