fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int max(int a, int b) {
  5. return a > b ? a : b;
  6. }
  7.  
  8. int max(int a, int b, int c) {
  9. return max(max(a, b), c);
  10. }
  11.  
  12. int main() {
  13. cout << max(10, 20, 30) << endl;
  14. return 0;
  15. }
Success #stdin #stdout 0s 5300KB
stdin
Standard input is empty
stdout
30