So I made a copy of a report template that was shared with me, and my copy will not compile, whereas the project I copied compiles just fine. This is the first error I get:
/usr/local/texlive/2019/texmf-dist/tex/latex/subfigure/subfigure.sty, line 124
LaTeX Error: Command \c@lofdepth already defined.
Or name \end... illegal, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.124 \newcounter{lofdepth}
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.
I have no idea where the file the error is reading is even located so I'm rather confused.

\documentclass{...}and ending with\end{document}. – Alessandro Cuttin Feb 03 '20 at 16:51subfigurepackage is deprecated and you should not use it. Trysubcaptioninstead. I would guess you are loadingsubfigureafter loadingtocloft(both packages define that counter), but there's no way to tell for sure without seeing at least your preamble. Please show us a compilable example of your document. – Phelype Oleinik Feb 03 '20 at 17:25