fork(4) download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. int main () {
  6. vector<int> vetor;
  7. for (int i = 0; i < 10; i++) {
  8. vetor.push_back(i);
  9. }
  10. for (vector<int>::iterator it = vetor.begin(); it != vetor.end(); it++) {
  11. cout << ' ' << *it;
  12. }
  13. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
 0 1 2 3 4 5 6 7 8 9