12345678910111213141516171819
#include <iostream> #include <vector> #include <string> using namespace std; int main() { vector<string> v; string s; while( cin >> s ); v.push_back(s); for( string str : v ) cout << str << " "; return 0; }
1234567891011121314151617181920212223
#include <iostream> #include <vector> #include <string> using namespace std; int main() { vector<string> v; string s; while( cin >> s ) { v.push_back(s); } for( string str : v ) { cout << str << " "; } return 0; }