Adding \begin{document} and \end{document} around your code, I got this output:
\begin{document}
\end{document}
So maybe just adding those was the: