fork(1) download
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. using namespace std;
  5.  
  6. void f(const std::vector<int> &arr)
  7. {
  8. for(const auto &v: arr)
  9. cout << v << " ";
  10. }
  11.  
  12. int main()
  13. {
  14. f({1,2,3,4,5});
  15. return 0;
  16. }
Success #stdin #stdout 0s 3228KB
stdin
Standard input is empty
stdout
1 2 3 4 5