fork download
  1. #include <iostream>
  2. #include <cstddef>
  3. #include <array>
  4.  
  5. void func(std::array<int,3>ar){
  6. for(int val:ar){
  7. std::cout<<val<<std::endl;
  8. }
  9. }
  10.  
  11. int main()
  12. {
  13. func({0,1});
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 3096KB
stdin
Standard input is empty
stdout
0
1
0