why is using namespace std a bad practice

Using namespace std can cause naming conflicts. It can make the code harder to read and understand. It can lead to longer compilation times. Prefixing every standard library identifier with std:: is the recommended practice.