fork(2) download
  1. void foo(long long) { }
  2. void foo(unsigned long long) { }
  3. void foo(long double) { }
  4.  
  5. int main()
  6. {
  7. int i = 0;
  8. foo(i);
  9. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:8:10: error: call of overloaded 'foo(int&)' is ambiguous
prog.cpp:1:6: note: candidates are: void foo(long long int)
prog.cpp:2:6: note:                 void foo(long long unsigned int)
prog.cpp:3:6: note:                 void foo(long double)
stdout
Standard output is empty