Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- using namespace std;
- vector<int>& fill()
- {
- vector<int> v(2);
- v[0] = 124;
- v[1] = 234;
- return v;
- }
- int main()
- {
- vector<int> v = fill();
- for (int i = 0; i < v.size(); i++)
- cout << v[i] << ' ';
- return 0;
- }
Add Comment
Please, Sign In to add comment