include<vector>
using namespace std;
int main()
{
vector<int> nums={1,2,3,4,5};
vector<int> nums1=nums;
vector<int> nums2(nums);
vector<int> nums3{1,2,3,4,5,6};
vector<int> nums4((nums.begin()+1),(nums.end()-1));
vector<int> nums5(5);
vector<int> nums6(5,-1);
vector<vector<int>> n_nums={nums,nums1,nums2,nums3,nums4,nums5,nums6};
for(auto it:n_nums){//遍历各个vector的元素
for(auto b:it){
cout<<b<<" ";
}
cout<<endl;
}
return 0;
}