Writing homework solutions using LaTeX is recommended for this course. It is also a good skill to learn. If you plan on going to graduate school and/or publishing papers in the future, you will end up writing in latex. This page gives some resources and links to good latex tutorials.
For most latex files, you should be able to compile a latex file using e.g. 'pdflatex foo.tex'. As with other compilable programs like C++, you might get some compilation errors.
Note: The above content was written by past instructors of CS46.