error: 'cout' was not declared in this scope; did you mean 'std::cout

technical talkiess
0

  std::cout

In file included from /tmp/xXGSmzLhdM.cpp:2:

/usr/include/c++/11/iostream:61:18: note: 'std::cout' declared here

   61 |   extern ostream cout;          /// Linked to standard output

      |                  ^~~~


solution 

:- add namespace

using namespace std;


Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)