fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void foo(int);
  5. void foo(long);
  6.  
  7. void foo(long)
  8. {
  9. cout << "long" << endl;
  10. }
  11.  
  12. void foo(int)
  13. {
  14. cout << "int" << endl;
  15. }
  16.  
  17. int main ()
  18. {
  19. foo(0L);
  20. foo(0);
  21. }
  22.  
Success #stdin #stdout 0s 3096KB
stdin
Standard input is empty
stdout
long
int