It’s good practice not to use:
using namespace std;
Doing so risks collisions between names in the standard library and names you have used.
It’s convenient for simple examples though so a fair few of our examples in the notes will use it...
It’s not unusual to be see use of using with something like the following:
using std::cout;
using std::cin;
using std::endl;