Also delete lines 3 and 4 in your code - they aren't necessary for that file.
Line 4 isn't necessary in any case - it can lead to naming conflicts. Just put std:: before each std thing - std::cout, std::cin, std::endl, std::string, std::vector etc. There are lots of things in the STL and it is documented in the reference section at the top left of this page.
Danny Toledo is right, if you have errors then post them in full, and the code they refer to.
This post is about the same topic as your other one. Could I ask you to please not do that? The trouble is that people make an effort to reply, and might make quite a long post, only to discover that the exact same things were talked about in the other post, which makes their effort seem to be a waste of time.
So, could you decide which post you want to continue with, then in your other post direct everyone to reply to the one you want to use.