fork download
  1.  
  2.  
  3. void Foo(long a, long);
  4. void Foo( long a, double b);
  5.  
  6. int main()
  7. {
  8. Foo(1, 2);
  9. Foo(1, 2.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:8:11: error: call of overloaded ‘Foo(int, int)’ is ambiguous
   Foo(1, 2);
           ^
prog.cpp:3:6: note: candidate: void Foo(long int, long int)
 void Foo(long a,  long);
      ^~~
prog.cpp:4:6: note: candidate: void Foo(long int, double)
 void Foo( long a, double b);
      ^~~
stdout
Standard output is empty