Advertisement
Josif_tepe

Untitled

Mar 1st, 2021
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <vector>
  4. #include <queue>
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.     int n;
  10.     cin >> n;
  11.     vector<int> v;
  12.     for(int i = 0; i < n; i++) {
  13.         int a;
  14.         cin >> a;
  15.         v.push_back(a);
  16.     }
  17.     v.erase(v.begin() + 4);
  18.     for(int i = 0; i < v.size(); i++) {
  19.         cout << v[i] << " ";
  20.     }
  21.     return 0;
  22. }
  23. /*
  24.  7 5
  25.      
  26.  2 4
  27. -3 3
  28.  
  29.  
  30.  
  31.  7 10
  32.  1 8
  33.  6 7
  34.  6 7
  35.  -1 6
  36.  2 4
  37.  -3 3
  38.  
  39.  **/
  40.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement