Answers for "cout does not name a type"

C++
3

cout does not name a type

//Statements in C++ need to be inside of a function
int main(){
	std::cout << "Hello World" << std::endl;
    //Works because we are inside of a function
}
std::cout << "Hello World" << std::endl;
//Doesn't work because we are not inside of a function
Posted by: Guest on June-17-2020

Code answers related to "cout does not name a type"

Browse Popular Code Answers by Language