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