My claim is that the set $\lbrace x: x=\cos(y), y\in [0,1]\rbrace$ is compact. Here is my solution.
Attemption:
First plug the bounds of the set and observe that: $$x=\cos(0)=1 \text{ and } x=\cos(1) \rightarrow \cos(1)\leq x \leq 1$$
So the set has the form: $$S= \lbrace x: \cos(1) \leq x \leq 1 \rbrace$$
It is clear that the set $S$ is closed and bounded so by Heine-Borel we can say S is compact.
Am I right? Thanks in advance!