Cin.fail
here