It looks like you didn't choose the right settings for your C++ program. Instead, you chose settings for a windows program, which is very different than a C++ program.
My suggestion is to cut and paste your code into Notepad or something similar, then start a new project with a new name, and then paste your code into the new project. If you've never set up a project before, then say so, and I or someone else can post the details on what to do.