fork(3) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void hi(); // This function is now declared.
  5.  
  6. int main() {
  7. hi();
  8. return 0;
  9. }
  10.  
  11. void hi() {
  12. cout << "hi" << endl;
  13. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
hi