This question is from Foundations of mathematical analysis by Richard Johnsonbaugh
The thing with this question is that there is a question that seems to prove the opposite claim Prove the map has a fixed point - someone look into this
How should one go about dealing with this question?
Suppose that $f: M \to M $ was onto. Then for every $x,y \in M$ $x \not=y$, there exists an $x',y' \in M$ s.t. $f(x')=x$ and $f(y')=y$. Then $$d(x,y)=d(f(x'),f(y'))\leq c d(x',y')<d(x',y').$$
Let $B=\max_{x,y \in M^2} d(x,y)$, this exists since $M$ is compact and $d:M^2 \to \mathbb{R}$ is continuous. But, by the above fact, for any $x,y \in M$ there exist an $x',y'$ s.t. $$d(x,y)<d(x',y'),$$ which contradicts the existence of a maximizer $B$.