fork download
  1. /******** Name :- Md Firoz Islam ***********
  2. University :- Northern University Bangladesh
  3. ********** Dhaka,Bangladesh ***************/
  4. #include <bits/stdc++.h>
  5. using namespace std;
  6. #define ll long long
  7. int main()
  8. {
  9. ios::sync_with_stdio(false);
  10. cin.tie(NULL);
  11.  
  12. vector<int>v={1,2,3,4,5,6,7,8,9,10};
  13.  
  14. for(int i=0;i<v.size();i++)
  15. {
  16. cout<<v[i]<<" ";
  17. }
  18. cout<<endl;
  19. for(int i=0;i<v.size();i++)
  20. {
  21. v[i]+=5;
  22. }
  23. for(int i=0;i<v.size();i++)
  24. {
  25. cout<<v[i]<<" ";
  26. }
  27. cout<<endl;
  28. return 0;
  29. }
  30.  
Success #stdin #stdout 0.01s 5292KB
stdin
Standard input is empty
stdout
1 2 3 4 5 6 7 8 9 10 
6 7 8 9 10 11 12 13 14 15