1vector<int> getVectorInput(string s){
2 string res="";
3 vector<int> arr;
4 for(auto e : s){
5 if(e==' '){
6 if(res.size()!=0)
7 arr.push_back(stoi(res));
8 res="";
9 continue;
10 }
11 res+=e;
12 }
13 if(res.size()!=0)
14 arr.push_back(stoi(res));
15 return arr;
16}