#include <iostream> using namespace std; enum t{ A,B,C,D }; int main() { // your code goes here int m[4]; m[A] = 1; m[B] = 2; m[C] = 3; m[D] = 4; for (int i : m) cout <<i; return 0; }
Standard input is empty
1234
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!