Prove directly from the definitions, that a compact subset of a Hausdorff space is closed. Give an example which shows that the "Hausdorff" assumption is neccessary.
Let $X$ be a topological space and $A \subset X$ compact. Let $x \in X \setminus A$. For every $a \in A$ pick disjoint neighborhoods $U_a$ of $a$ and $V_x(a)$ of $x$. Since $A$ is compact, the set $\{U_a \mid a \in A\}$ is a cover of $A$ and thus has a finite subcover $\{U_a \mid a \in F \}$ for $F$ finite. Now $$U= \bigcup \{U_a \mid a \in F\} \text { and } V=\bigcap\{V_x(a) \mid a \in F\}$$ are disjoint neighborhoods of $A$ and $\{x\}$.
Using this we can find a neighborhood $V_x$ for $x \in X \setminus A$ that is disjoint from $A$ and therefore $x \in V_x \subset X \setminus A$ implies that $X \setminus A$ is open and $A$ closed.
I don't know how I can give an example that this doesn't work without the Hausdorff condition. The simplest non-Hausdorff space I could think of was $(X, \{X, \emptyset\})$, but I don't know if I can work with this as I don't have any neighborhoods for the points except for $X$ itself?