#include <iostream>    
#include <vector>
#include <list>

using namespace std;

int main(){
    
    vector <int> iVec;
    list <int> iList;
    vector<int>::iterator vIt;
    list <int>::iterator lIt;
    
    for(int i = 0; i < 10; i++){
        iVec.push_back(i*10);
        iList.push_back(i*10);
    }//0, 10, 20, 30....90

    lIt = iList.begin();
    vIt = iVec.begin();
    // 0, 10, 20, 30, 40, 50....
    // ^ -- iterator points to 0, lIt++; lIt+=5;
    // 0, 10, 20, 30, 40, 50....
    // ^ -- iterator points to 0;  vIt+=5;
    
    vIt+=2;
    iVec.insert(vIt, 5, 5309);
    
    lIt++; lIt++;
    iList.insert(lIt, iVec.begin(), iVec.end());
    
    
    cout << endl << endl <<"Vector Contents: " <<endl << endl;
   //Vector output loop
    for(int i=0; i < iVec.size(); i++){
        cout << iVec[i] << endl;
    }
    
    
    
    cout << endl << endl <<"List Contents: " <<endl << endl;
    //List output loop
    for(lIt = iList.begin(); lIt != iList.end(); lIt++){
        cout << *lIt << endl;
    }
    
    
    return 0;
 }
            
