Since we are including the iostream header, what was the need to define cin, cout, endl, etc. inside the std namespace?
What added advantage did this cause?
Example: In C, we use to include stdio header file and used to call printf() and scanf() directly.
(I am aware namespaces is a C++ feature, the example is just to point at my confusion to understand its usage).
Edit : What would happen if cin, cout, etc. weren't a part of any namespace and we could just use them directly by just importing the header file. What problems would that cause?