I’m a big fan of never using using namespace std
. There are a ton of technical reasons, but I want to talk about the readability part. Generally, if it is avoided, it’s easier for somebody checking your code to see which variables are yours. Sure, cout
and cin
are unmistakable, but what about vector
or hash
or pair
?