Input / output problem

Let's talk about algorithms!

Moderator: Board moderators

Post Reply
New poster
Posts: 34
Joined: Sat Nov 13, 2004 12:15 pm

Input / output problem

Post by paulmcvn »

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++?

Experienced poster
Posts: 216
Joined: Tue Aug 31, 2004 1:02 am
Location: Tehran

Post by Moha »

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.

Post Reply

Return to “Algorithms”