Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- #include<vector>
- using namespace std;
- int main()
- {
- int i,y,p;
- vector<int>x;
- vector<int>:: iterator k;
- cin>>p;
- for(i=0;i<p;i++)
- {
- cin>>y;
- x.push_back(y);
- }
- for(k=x.begin();k<x.end();k++)
- cout<<*k<<" ";
- cout<<endl;
- for(i=0;i<p;i++)
- {
- cout<<x[i]<<" ";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement