That means you're reading in the wrong type of data for the command you're using.

For instance, reading in "abcd" and saying

int n = that value.

Also, I noticed there's a double variable on...