If you are still not confident in your ability to both stay sane and repeatedly type std:: over and over, you can explicitly use the specific things you want:
1 2 3
using std::cout;
using std:endl;
using std::cin;
The goal is just to never ever write "using namespace std;" or similar, because it's like opening the floodgates for your friends - you have no idea about the massive flood of other things that come in.
I'd advise using std:: with any standard function:
std::getline(...); *yes, this works*
It makes it obvious that you're using something standard, not some "getline(...)" function someone else may've made, that is overriding the local scope.
I usually recommend the std:: method. I recommend always keeping the using declarations as local as possible. For example if I'm using cout and endl in a function quite a lot I might put the using std::cout; statement inside that function. This limits the scope of the using declaration to that function.
1 2 3 4 5 6 7
void display()
{
using std::cout;
using std::endl;
... The rest of the function.
}