Guest User

Untitled

a guest
Jun 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. using namespace std;
  5.  
  6. vector<int>& fill()
  7. {
  8.     vector<int> v(2);
  9.     v[0] = 124;
  10.     v[1] = 234;
  11.     return v;
  12. }
  13.  
  14. int main()
  15. {
  16.     vector<int> v = fill();
  17.     for (int i = 0; i < v.size(); i++)
  18.         cout << v[i] << ' ';
  19.     return 0;
  20. }
Add Comment
Please, Sign In to add comment