I'm asked to state why there cannot be a surjective and continuous function $$g: [0,1]\longrightarrow \text{Cantor Set} $$ I know that $g^{-1}$ exists and is continuous & surjective since the previous exercise was for me to show exactly that. Now I know that if $g$ were a bijection, then if $g$ were to be continuous, then it would be a homeomorphism and would have to preserve connectedness of $[0,1]$, which it doesn't, implying that $g$ cannot be continuous.
But this requires me to have a bijectivity of $g^{-1}$, where does surjectivity alone enter in this case?