\documentclass[../main_text.tex]{subfiles}
\begin{document}

\exercise

\end{document}
