fork download
  1. #include <iostream>
  2. #include <vector>
  3. #include <iterator>
  4. using namespace std;
  5.  
  6. int main() {
  7. vector<int> v {1,2,3,4};
  8. size_t offset = 1;
  9. ostream_iterator<int> out_it (std::cout,", ");
  10. copy ( next(v.begin(), offset), v.end(), out_it );
  11. return 0;
  12. }
Success #stdin #stdout 0s 3428KB
stdin
Standard input is empty
stdout
2, 3, 4,