12345678910111213141516171819202122232425
Put the code you need help with here. #include <iostream> #include <string> #include <sstream> #include <vector> using namespace std; int main(int argc, const char * argv[]) { // insert code here... string a; stringstream ss; int tmp; vector<int> v; getline(cin ,a); //cin >>a; ss << a; while(ss >> tmp) { v.push_back(tmp); } cout << v[0]<<endl << v[1] << endl << v[2] <<endl; return 0; }