I got a problem on this c++ questions.
The background is that we need to let the user to type in the number of stones in a farm, then they will type in the coordinates of the stone. After typing in the coordinates, we need to check whether they can form a rectangle or not.
Here is the sample input and output:
9(number of rocks) coordinates: the output is two 2 2 2 5 4 2 4 4 9 2 9 4 9 6 10 4 10 6
However , I don't know how to find out rectangles. I got some problems in comparing there coordinates, can you guys help me??