fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. inline int func(int a, int b) {
  5. int ab[2] = {a, b};
  6. return ab[a<b];
  7. }
  8.  
  9.  
  10. int main() {
  11.  
  12. cout << func(5, 4);
  13.  
  14. // your code goes here
  15. return 0;
  16. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
5