So what you are saying is that the error is not on that line?
In many cases the error message is not at the line that contains the error. So a way of fault finding is to comment out the line and see if it compiles.
When I did that there were other errors that I pointed out, you fix those first because they are errors and you can see them. In fact fixing the brace showed that two out of the extra four lines had faults in them as well.
In your case the line:-
calc_dist(latitude(),longitude(), inputlon, inputlat);
Expected to receive values from the functions latitude and longitude. These functions were declared a void which means they don't return any values. Hence the error message.
However that code is very very weird, using while(1) to form an infinite loop and then breaking out of it with a return, this is very poor coding practice.
Also as said before you don't have a handle on what is meant by a returned value from a function.
There is a lot more work to do on this code than simply just that one line.