it_1 < vector_1.end ()
should be
it_1 != vector_1.end ()
and
while (std::cin >> message, d != 0) {
vector_1.push_back (message);
++d;
}
should be
getline(std::cin, message);
std::stringstream ss(message);
std::string temp;
while (ss >> temp)
vector_1.push_back(temp);
You'll want to #include <sstream>
at the top for this to work.