Solution
= Solution
The <adjunction formula> on the degree-$d$ <projective hypersurface> gives $K_X=(d-4)H$. Since $C$ is a <smooth rational curve>, adjunction on $C$ gives $(K_X+C)\cdot C=2g(C)-2=-2$. Its degree is $H\cdot C=a$, so the <smooth rational-curve self-intersection on a projective hypersurface> formula is
$$
\boxed{C^2=-2-(d-4)a.}
$$