Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- using namespace std;
- void f(vector<int> a) {
- for (auto e : a) {
- cout << e << ' ';
- }
- cout << endl;
- return;
- }
- int main() {
- vector<int> a({2, 3, 5, 6});
- f(vector<int>(a.begin() + 1, a.begin() + 3));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement