fork(1) download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. int main() {
  6. int a[] = {1, 2, 3};
  7. vector<int> v(a + 1, a + 3);
  8. for (int x : v) {
  9. cout << x << endl;
  10. }
  11. return 0;
  12. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
2
3