Problem with code

it is failing all test cases

Two points can have the same distance from the origin, you can’t really use a map like this.