vector<int> v; int a; while(cin>>a){ v.push_back(a); if(cin.get=='\n') break; }