I am confused with the definition of compactness.
My prof taught us this:
a subset U of $\mathbb{R}^d$ is compact if every open covering of U has a finite subcovering.
However, when I google the definition of compactness, it seems like the definition is this:
a subset is compact if it is closed and bounded.
Are they the same thing? If so, how are they related?
What your prof. taught is a definition of compact that works for a more general topological space,
not just $\mathbb R^n$. What you found via Google is true in $\mathbb R^n$ by the Heine-Borel theorem.