fork(1) download
  1. typedef int (*KlutzCxxFuncType)(int);
  2.  
  3. extern "C" {
  4. typedef int (*KlutzCFuncType)(int);
  5. int Klutz (KlutzCFuncType, int);
  6. }
  7.  
  8. int Klutz (KlutzCxxFuncType fptr, int x) { return (*fptr)(x); }
  9. int Klutz (KlutzCFuncType fptr, int x) { return (*fptr)(x); }
  10.  
  11. int main () {}
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int Klutz(KlutzCFuncType, int)’:
prog.cpp:9:5: error: redefinition of ‘int Klutz(KlutzCFuncType, int)’
prog.cpp:8:5: error: ‘int Klutz(KlutzCxxFuncType, int)’ previously defined here
stdout
Standard output is empty