fork(3) download
  1. #include <iostream>
  2.  
  3. void f() {}
  4. extern "C" void g() {}
  5.  
  6. int main() {
  7. f(1);
  8. g(2);
  9. return 0;
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:7:5: error: too many arguments to function ‘void f()’
  f(1);
     ^
prog.cpp:3:6: note: declared here
 void f() {}
      ^
prog.cpp:8:8: error: too many arguments to function ‘void g()’
     g(2);
        ^
prog.cpp:4:17: note: declared here
 extern "C" void g() {}
                 ^
stdout
Standard output is empty