1//Statements in C++ need to be inside of a function
2int main(){
3 std::cout << "Hello World" << std::endl;
4 //Works because we are inside of a function
5}
6std::cout << "Hello World" << std::endl;
7//Doesn't work because we are not inside of a function