Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include "func_c.h"
- using std::cin;
- using std::cout;
- using std::vector;
- int main() {
- int n,m;
- cin >> n;
- vector<int> v1(n);
- for(int &el : v1) cin >> el;
- cin >> m;
- vector<int> v2(m);
- for(int &el : v2) cin >> el;
- swap(v1, v2);
- for(int &el : v1) cout << el << ' ';
- cout << std::endl;
- for(int &el : v2) cout << el << ' ';
- cout << std::endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement