fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int fun(int a, int b) {
  5. return a + b;
  6. }
  7.  
  8. int fun(int a, char b) {
  9. return b - a;
  10. }
  11.  
  12. int fun(float a, float b) {
  13. return a * b;
  14. }
  15.  
  16. int main() {
  17. cout << fun(1,0) << fun('a','c') << fun(2.f,2.f);
  18. return 0;
  19. }
  20.  
  21.  
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
124