In any program you can put usingnamespace std; after headers and then you can write cout<<...; or cin>>...; without std::.
On the other hand, you can omit usingnamespace std; and you can write std::cout<<...; or std::cin>>...; The last way of doing this is better than the first because it doesn't charge the memory with some unuseful functions of std::. Also, if you'll do that in the future, be careful because you can use functions of std:: without knowing that so probably you'll have some errors with a suspicious meaning - to correct them you must put usingnamespace std;.