I have a working program that reads in the value of two coordinates (x,y) and determines which is closer to the origin. This is for school, and before we submit our work, our programs are scrutinized by some simple automated tests.
While the program works for me when I input my 4 coordinate values, it doesn't in the test. My program isn't reading any values in.
I've tried changing the variables from integers to floating point numbers and I've attempted other methods of solving it, but to no avail.
Any ideas what could be going on? Just as some possible help to finding the solution, I also had problems with the test accepting my program's output even though both my output and the sample output looked entirely the same. It turned out I needed to change the printf functions to fprintf.