'Just installed visual studio; 478 of "E0282 the global scope has no..." errors when compiling C++ program

I'm trying to run a program that prints out "hello" just to see if I can get C++ to run on my machine (running Windows 10 Home and Visual Studio 17.0.5). When I compile the program, I get all kinds of errors that seem to point to files that I haven't even included in my program:

#include <iostream>
#include <string>
using namespace std;

int main() {
    cout << "hello";
    return 0;
}

screenshot of errors



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source