#include<bits/stdc++.h>
using namespace std;

int main() {
    std::vector<std::string> str;
    str.push_back("adarsh");
    str.push_back("name");
    str.push_back("bahsbd");

    for(int i = 0; i < str.size(); i++) {
         std::cout<<str[i]<<std::endl;
    }

    str.erase(str.begin() + 2);

    for(int i = 0; i < str.size(); i++) {
         std::cout<<str[i]<<std::endl;
    }

    return 0;
}

Embed on website

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