fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. enum t{
  5. A,B,C,D
  6. };
  7.  
  8. int main() {
  9. // your code goes here
  10. int m[4];
  11. m[A] = 1;
  12. m[B] = 2;
  13. m[C] = 3;
  14. m[D] = 4;
  15. for (int i : m)
  16. cout <<i;
  17. return 0;
  18. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
1234