fork download
  1. #include <iostream>
  2. #include <algorithm>
  3.  
  4. int main() {
  5. std::array<int, 5> a = {1,2,3,4,5};
  6. for(int x : a) std::cout << "a: "<< x << std::endl;
  7. return 0;
  8. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
a: 1
a: 2
a: 3
a: 4
a: 5