getline() reads a whole line, including the position and score.
Position is not an integer.
If every name has one word for forename and one word for surname, then reading two words and concatenating them would work. If, however, Reginald van der False Sr attends the race, then the simple routine will fail.
Plan B:
1. Read the whole line.
2. Find the last word from the line and store it into score.
3. Find the second to last word from line and store to position.
4. Store the rest of the line as name.