Change input/output from stdin/stdout to files.
Added g++ for compiling the parsing result.