When I try to compile a new project i get an error:
Could not open the file 'main.cpp'.
The file does not exist.
I am sure about the location of the file.
so, check if you have good right to access it. Without informations (operating system by example) we can not solve your problem.