fork(2) download
  1. #include <iostream>
  2.  
  3. int foo() {
  4. std::cout<<"also works";
  5. }
  6.  
  7. int main() {
  8. // your code goes here
  9. std::cout<<"works";
  10. foo();
  11. }
Success #stdin #stdout 0s 3140KB
stdin
Standard input is empty
stdout
worksalso works