int foo(){ return 1;} float foo(){ return 1;}
Standard input is empty
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()'
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!