Typically, by "factor a polynomial" one means "write as factors with integer coefficients", possibly with a fraction multiplying all factors. While a cubic polynomial must have at least one real zero, it does not necessarily have any rational roots and, if not, cannot be factored with integer coefficients.