The \degree command is provided by the gensymb package, so if you add:
\usepackage{gensymb}

Another alternative is the \textdegree command, which is provided by the textcomp package. And, finally, $^{\circ}$ is another way of obtaining roughly the right symbol.