The project on c ++ is not compiled

On 1 screenshot after creating a class, and on 2 screenshot after creating a new project.
How can I fix this?