fork download
  1. #include <cstdio>
  2.  
  3. class Class
  4. {
  5. public:
  6. Class(int i)
  7. {
  8. }
  9. };
  10.  
  11. void hello(double)
  12. {
  13. std::puts("double");
  14. }
  15.  
  16. //uncomment that to get two errors:
  17. /*
  18. void hello(float)
  19. {
  20.   std::puts("float\n");
  21. }
  22. //*/
  23.  
  24. void hello(Class c)
  25. {
  26. std::puts("class\n");
  27. }
  28.  
  29. int main()
  30. {
  31. hello(1u);
  32. hello(1);
  33. }
  34.  
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
double
double