30.05.2009, 10:10
I don't know about your main error, but putting i++ at the end of the loop means you'll skip every other car, as it will i++ again afterwards.
And anyway as soon as you come across a line without a car it will return 1...
And anyway as soon as you come across a line without a car it will return 1...

