Consider the following question:
Suppose that $X$ is a subset of $\mathbb{R}^n$ and $Z$ is a subset of $X$. Show that the restriction to $Z$ of any smooth map on $X$ is a smooth map on $Z$.
(Note: A smooth function is defined to be one that has continuous partial derivatives of all orders)
What exactly is this question asking? I don't see why this does not follow immediately, and so I must be missing something quite crucial. I don't think the question was intended to prompt an answer of the form
Proof: QED.
It really is straightforward. Write $f$ for your smooth map on $X$. You simply need to show that there is an open set $U$ containing $Z$, and a smooth extension of $f$ to $U$. (Incidentally this handles the issue of how to treat isolated points mentioned in the comments.)