I am sure as to exactly what you are asking.
Do you have the concept of distance from a point to a set?
Then show that a closed set is set of all points a distance of zero from the set.
So in this problem
Because of compactness you can cover with finite collection of balls all disjoint from . That should answer the first question.
In let .
Both sets are closed and neither is compact.