In the discrete topology, one point sets are open. So you can take the cover by those sets. Removing just one element of the cover breaks the cover. In fact no infinite set in the discrete topology is compact.
As for the indiscrete topology, every set is compact because there is only one possible open cover, namely the space itself. Since that cover is finite already, every set is compact.