vector<int> input; string line; getline(cin, line); istringstream itmp(line); while (itmp >> tmp) { input.push_back(tmp); }