#include <iostream>
int main(int argc, char** argv) {
bool gg;
if( [&]()->decltype(gg){
return true; //try changing this to true or false and you'll get the same result.
}() == true){
std::cout<<"all even"<<std::endl;
}else {
std::cout<<"all odd"<<std::endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgppbnQgbWFpbihpbnQgYXJnYywgY2hhcioqIGFyZ3YpIHsKICAgIGJvb2wgZ2c7CiAgICBpZiggWyZdKCktPmRlY2x0eXBlKGdnKXsKCiAgICByZXR1cm4gdHJ1ZTsgIC8vdHJ5IGNoYW5naW5nIHRoaXMgdG8gdHJ1ZSBvciBmYWxzZSBhbmQgeW91J2xsIGdldCB0aGUgc2FtZSByZXN1bHQuCgogICAgfSgpID09IHRydWUpewoKICAgIHN0ZDo6Y291dDw8ImFsbCBldmVuIjw8c3RkOjplbmRsOyAgIAogICAgfWVsc2UgewogICAgc3RkOjpjb3V0PDwiYWxsIG9kZCI8PHN0ZDo6ZW5kbDsKICAgIH0KCgogICAgcmV0dXJuIDA7Cn0=