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