Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <algorithm>
- using namespace std;
- int main()
- {
- int n,i;
- vector<int>V;
- vector<int>::iterator it;
- cin>>n;
- while(n--)
- {
- cin>>i;
- V.push_back(i);
- }
- cin>>n;
- //it = find(V.begin(),V.end(),n);
- V.erase(find(V.begin(),V.end(),n));
- for(it=V.begin();it!=V.end();it++) cout<<*it<<endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment