[Solved] Compilation errors when using cout

[ad_1]

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

[ad_2]

solved Compilation errors when using cout