fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int fun(int p1 = 1, int p2 = 1) {
  5. return p2 << p1;
  6. }
  7.  
  8. int main() {
  9. cout << fun(fun(),fun(2));
  10. return 0;
  11. }
  12.  
  13.  
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
16