fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void helloWorld(void);
  5.  
  6. int main()
  7. {
  8. helloWorld();
  9.  
  10. return 0;
  11. }
  12.  
  13. void helloWorld(void)
  14. {
  15. cout << "Hello, world!" << endl;
  16. }
Success #stdin #stdout 0s 2852KB
stdin
1
2
10
42
11
stdout
Hello, world!