Paste your code, not a picture of it.

Perhaps you should begin by replacing your while condition with something like


while ( infile >> number ) {
// do stuff
}