In the top menu, where the RUN button is, the right-most button (after BEAUTIFY) is the DOWNLOAD button.
I've just tested it, it downloaded a main.cpp for me. If I open it, it's a proper cpp source file (text, not binary).
How do you download your files?