Advertisement
Josif_tepe

Untitled

Apr 20th, 2021
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <vector>
  4. using namespace std;
  5. int main() {
  6.  
  7. int n;
  8. cin >> n;
  9. vector<int> v;
  10. for(int i = 0; i < n; i++) {
  11. int a;
  12. cin >> a;
  13. v.push_back(a);
  14. }
  15. vector<int>::iterator it;
  16.  
  17. for(it = v.begin(); it != v.end(); it++) {
  18. cout << *it << endl;
  19. }
  20.  
  21. return 0;
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement