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