Why in PC when we write using namespace std; we get an error | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why in PC when we write using namespace std; we get an error

7th Dec 2016, 12:31 PM
Ravi Kumar
Ravi Kumar - avatar
3 Answers
+ 2
which compiler should I use then
7th Dec 2016, 12:34 PM
Ravi Kumar
Ravi Kumar - avatar
+ 1
it's because of the compiler or version or type you are using.
7th Dec 2016, 12:33 PM
Sandeep Chatterjee
+ 1
you can use both there is no problem the differences you saw were few of the only common differences between them if however if you ask learn the one with automatic .h using namespace etc
7th Dec 2016, 12:36 PM
Sandeep Chatterjee