President Jimmy Carter inherited an impossible situation - and he and his advisers made the worst of it.