Your program does not include <string> for std::string class, so how in the world are you getting it to compile????? Don't attempt to execute a program that contains compiler errors or warnings. Yes, warnings in your code are usually errors too.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.