You have a variable of type int
called cout
– this is not allowed given that you are using namespace std
. Change this variable name to something else, and avoid the statement using namespace std.
std::cout
is a “reserved type/keyword” so you cannot use it as a variable name.
1
solved Compilation errors when using cout