What is bigint? What provision does its operator>> make for semicolons? If none, you'll need to get the semicolon out of the file stream before you read the next value. Also, your couts should probably be separated by a newline.