My question:
Define the distance on $C[0,1]$ by $$d(f,g)=\max_{x\in [0,1]}|f(x)-g(x)|.$$ Prove that the set $S \subset C[0,1]$ is not compact, where $S=\{f \in C[0,1]|d(f,0)=1\}$.
My idea: For this, I assume that if I choose a sequence $\{f_n\}$ in $S$, that is Cauchy, but the limit of $\{f_n\}$ is not continuous. This implies $S$ is not compact.
I chose $f_n(x)=(-1)^{n}$. The limit points of $f_n(x)$ are $f(x)=1,$ and $-1$. I observed that this sequence is not Cauchy, so I cannot use my idea.
I choose another example, $f_n(x)=x^n$, but this is also not Cauchy.
Can anyone suggest an example of this case that works?