Can someone explain me why there are some problems that i got wa with
while not eof
but got accepted when changing to
while not seekeof
What's equivalent in C++?
Input / output problem
Moderator: Board moderators
I have forgotten Pascal language but I had a similar problem in C++ especially in 2 problems:
10389 which I used cin and getline for reading the inputs which gave me WA after I changed into scanf I got it.
But in 10401, the story was different. The judge has some extra space at the end of lines. Sometimes we shouldn't suppose some assumptions about the input but in some cases there are problems in the inputs.
10389 which I used cin and getline for reading the inputs which gave me WA after I changed into scanf I got it.
But in 10401, the story was different. The judge has some extra space at the end of lines. Sometimes we shouldn't suppose some assumptions about the input but in some cases there are problems in the inputs.