The taks is: Show that in every infinite compact space there is a countable subset that is not closed.
At first I read that it should be closed and I had an idea to take a point $x_1 \in X$ and an open set $U_1$ containing $x_1$. If $X/U_1$ is finite then we're done. If not, then it is still compact and we take $x_2 \in X\setminus U_1$ and an open set $U_2$ which should be distinct from $U_1$ and so on... And we would get a countable and closed set.
But I don't know how to do this task. Could somebody tell me how to do it?
Lemma: In compact spaces all infinite subsets have a limit point. (But they don't necessarily contain it.)
(Proof sketch: Take, by contradiction, an infinite subset $A$ with no limit points. $A$ is closed as $A'=\emptyset$ and so $A=\bar{A}$, closed subsets of compact spaces are compact so $A$ is compact, but every point in $A$ is isolated which gives us an infinite cover by open sets [the singletons] with no finite subcover, contradicting $A$ compact.)
Now take a countably infinite subset of your compact space, by the lemma it has at least 1 limit point. If it does not contain this limit point, it is not closed and countably infinite. If it does contain the limit point, take that limit point out and the set you're left with is not closed and still countably infinite.