fork download
  1. int foo()
  2. {
  3. return 1;
  4. }
  5.  
  6. float foo()
  7. {
  8. return 1;
  9. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'float foo()':
prog.cpp:6:11: error: new declaration 'float foo()'
prog.cpp:1:5: error: ambiguates old declaration 'int foo()'
stdout
Standard output is empty