#include<bits/stdc++.h>
using namespace std;
int main(){
    vector<int> v;
    int input;
    while(cin>>input){
        v.push_back(input);
    }
    for(int i=0;i<v.size();i++){
        cout<<v[i]<<"\n";
    }
    v.insert(v.begin(),10);
    for(int i=0;i<v.size();i++){
        cout<<v[i]<<"\n";
    }
    v.erase(v.begin());
    for(int i=0;i<v.size();i++){
        cout<<v[i]<<"\n";
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: