Solvers fail on nonlinear problem (which has solutions)

Could you please give the exact code for defining the vector of ps and of xs that should be a solution?