Question: why using namespace std is bad?
Answer: The statement using namespace std is generally considered bad practice. ... In the worst case, the program may still compile but call the wrong function, since we never specified to which namespace the identifier belonged. Namespaces were introduced into C++ to resolve identifier name conflicts.