#include <iostream>
#include <initializer_list>
#include <algorithm>
int main() {
int x = 7;
if (const auto a = {1,2,4,6,7}; a.end() != std::find(a.begin(), a.end(), x) )
std::cout << "x is either 1,2,4,6 or 7" << std::endl;
else
std::cout << "x is something else" << std::endl;
// your code goes here
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8aW5pdGlhbGl6ZXJfbGlzdD4KI2luY2x1ZGUgPGFsZ29yaXRobT4KCmludCBtYWluKCkgewoJCglpbnQgeCA9IDc7CgkKCWlmIChjb25zdCBhdXRvIGEgPSB7MSwyLDQsNiw3fTsgYS5lbmQoKSAhPSBzdGQ6OmZpbmQoYS5iZWdpbigpLCBhLmVuZCgpLCB4KSApCgkgIHN0ZDo6Y291dCA8PCAieCBpcyBlaXRoZXIgMSwyLDQsNiBvciA3IiA8PCBzdGQ6OmVuZGw7CgllbHNlCgkgIHN0ZDo6Y291dCA8PCAieCBpcyBzb21ldGhpbmcgZWxzZSIgPDwgc3RkOjplbmRsOwoJCgkvLyB5b3VyIGNvZGUgZ29lcyBoZXJlCglyZXR1cm4gMDsKfQ==