#include #include using namespace std ; int main() { std::function f1; { int x1 = 1; f1 = [x1]() { cout << x1; }; } f1(); return 0; }