Check that scanf succeeds