Some programs in SPOJ require the user to give inputs but has no terminating condition (some terminating conditions like no. of test cases, input 0, intput -1, etc). Some user comments say that input is to be given till an EOF() is encountered...
Can some1 explain more about that ? Does the judge give an EOF() on its own ? How are C++ programs to be written for such programs ?