Let $f$ be a surjective continuous function from $\Bbb{R}^n$ to $\Bbb{R},$ I look at the set $$A:=\{x\in \Bbb{R}^n:f(x)=0\}.$$
$A$ is closed, but I wonder if it can be compact, for $n=1$ it can. But what's happen if $n\ge 2$?
Is it possible to find such a function where the set of zero is bounded?