I am struggling with this problem. I couldn't obtain anything from an arbitrary open covering of the space. I couldn't think of any counterexample. I tried googling it, but there were no results. The problem is:
Is a topological space $X$ compact if every nontrivial closed subset of $X$ is compact?