This seems to be a pretty easy problem but I cannot understand why we do not consider the contribution of $\ce{H+}$ ions by water (water dissociates into $\ce{H+}$ and $\ce{OH-}$) and only that of $\ce{HCl}$ when we find the total $\ce{H+}$ ion concentration, in the same way both $\ce{NaCl}$ and $\ce{HCl}$ contribute towards the concentration of Chlorine.
Is the solution wrong or is my reasoning incorrect?