Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Putting using namespace std within your program is generally a bad habita bad habit that you'd do well to avoid.
using namespace std
Anything with a leading underscore is a reserved name in C++ (and in C). See this questionthis question for details.
Putting using namespace std within your program is generally a bad habit that you'd do well to avoid.
Anything with a leading underscore is a reserved name in C++ (and in C). See this question for details.
In order to compile and link, this code requires the following three lines:
In order to compile and link, this code requires the following lines:
In order to compile and link, this code requires the following twothree lines:
In order to compile and link, this code requires the following two lines: