fork(3) download
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. using namespace std;
  5.  
  6. void doSomething(std::vector<int> arr)
  7. {
  8. std::cout << arr[0] << std::endl;
  9. }
  10.  
  11. int main() {
  12. doSomething(std::vector<int>{1, 2, 3 });
  13. return 0;
  14. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
1