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