#include <iostream>
using namespace std;
struct Block {
int number;
};
int main() {
Block block;
block.number = 1;
auto closure = [&block]{ cout << "n: " << block.number << endl; };
closure();
cout << "n: " << block.number << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKc3RydWN0IEJsb2NrIHsKCWludCBudW1iZXI7Cn07CgppbnQgbWFpbigpIHsKCQoJQmxvY2sgYmxvY2s7CglibG9jay5udW1iZXIgPSAxOwoJCglhdXRvIGNsb3N1cmUgPSBbJmJsb2NrXXsgY291dCA8PCAibjogIiA8PCBibG9jay5udW1iZXIgPDwgZW5kbDsgfTsKCQoJY2xvc3VyZSgpOwoJCgljb3V0IDw8ICJuOiAiIDw8IGJsb2NrLm51bWJlciA8PCBlbmRsOwoJCglyZXR1cm4gMDsKfQ==