Let $X \subset \mathbb{R^m}$. Show that if any continuous function of real value and defined in $X$ reaches a value maximum, then $X$ is compact.
$K\subseteq \mathbb{R}^n$ is a compact space iff every continuous function in $K$ is bounded.