fork(1) download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. int main() {
  6. vector<int> a = {1,2,3};
  7. a.insert(a.end(), {4,5,6});
  8. for(int &i : a) {
  9. cout << i << " ";
  10. }
  11. cout << endl;
  12. return 0;
  13. }
Success #stdin #stdout 0s 3428KB
stdin
Standard input is empty
stdout
1 2 3 4 5 6