https://www.hackerrank.com/challenges/vector-erase/problem #include #include #include #include #include using namespace std; int main() { int n, x, temp, a, b; vector N; cin >> n; for (int i = 0; i > temp; N.push_back(temp); } cin >> x >> a >> b; vector::iterator iter = N.begin(); iter -= 1; N.erase(iter + x); N.erase(iter + a, iter + b); cout