fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. enum X{A, B, C, D};
  5.  
  6. enum X f(int z, int y, enum X x)
  7. {
  8. return x;
  9. }
  10. int main() {
  11. X x = X::D;
  12.  
  13. cout << f(3, 5, x) << endl;
  14. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
3