fork download
  1. #include <iostream>
  2.  
  3. int main() {
  4. int arr[] = {1, 1, 2, 2, 3, 3};
  5. for (auto &it : arr)
  6. std::cout << it << std::endl;
  7. return 0;
  8. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
1
1
2
2
3
3