please Explain the error and solution as well.