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