#include <iostream>
enum struct EnumType : unsigned int { SOME = 1, MORE = 6, HERE = 8 };
int main() {
const unsigned int num = 1;
switch (static_cast<EnumType>(num)) {
case EnumType::SOME:
std::cout << "some" << std::endl;
break;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKZW51bSBzdHJ1Y3QgRW51bVR5cGUgOiB1bnNpZ25lZCBpbnQgeyBTT01FID0gMSwgTU9SRSA9IDYsIEhFUkUgPSA4IH07CgppbnQgbWFpbigpIHsKCWNvbnN0IHVuc2lnbmVkIGludCBudW0gPSAxOwoJCglzd2l0Y2ggKHN0YXRpY19jYXN0PEVudW1UeXBlPihudW0pKSB7CgljYXNlIEVudW1UeXBlOjpTT01FOgoJCXN0ZDo6Y291dCA8PCAic29tZSIgPDwgc3RkOjplbmRsOwoJCWJyZWFrOwoJfQoJCglyZXR1cm4gMDsKfQ==