Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(int i = 0; i < n; i++){
- vector<int> temp;
- do{
- int tmp;
- if(cin >> tmp){
- temp.push_back(tmp);
- }
- }while(cin && cin.peek()!='\n');
- res.push_back(temp);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement