Whose Error Is It?

C or C++ printed this

error: 'cout' was not declared in this scope
What it meansThe compiler does not know the name cout, because the iostream header is missing or the std namespace was not specified.
The first thing to checkAdd #include <iostream> at the top of the file and write std::cout, or add using namespace std; after the include in small programs.

More from C or C++

All 75 errors

Whose Error Is It? · Status Menu · Back to the bar