Since, i got to know that writing "using namespace std;" in the header should be avoided. And now i find it pretty annoying to write "std::" before vector,string,cout,cin etc every time in the code. So, instead of that can i just write "using std::vector","using std::cout" etc in the header so that i don't have to write it again and again?? And,am I allowed to write "using namespace std;" in the header in a coding interview?
Can i use the way shown below??
#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
using std::endl;
using std::vector;
using std::string;
using std::cout;
using std::pair;