tempcoderunnerfile.cpp:1:1: error: does not name a type code example
Example: tempcoderunnerfile.cpp:1:1: error: does not name a type
Error can be caused by several factors, in my case I had to check my file directory and delete the "tempcoderunnerfile.cpp" file. You should also check for duplicate "#include"'s