Let $(X, F_1)$ be a cofinite topology and $(X, F_2)$ be a cocountable topology for an uncountable set $X$.
The question says that a cofinite topology is compact while cocountable topology is not.
Although the following is not the proof, my idea is as follows: Pick any $E \in F_1$, then $X \setminus E$ is finite and let $X \setminus E = \{x_1, ..., x_n\}$ for some $n \in \mathbb{N}$. Then, $X$ has a finite subcover (i.e., $E \cup (\bigcup_{i=1}^n V_{x_i}) = X$, where $V_{x_i}$ is a neighbourhood of $x_i$). However, this is not the case for a cocountable topology because for any $F \in F_2$, $X \setminus F$ is at most countable.
However, I do not know how to prove compactness in general for both cases. I appreciate if you give some help.