#include <iostream>
#include<functional>
void Func(int i){
static std::function<void(int)> F = [](int N){
std::cout<<N<<std::endl;
};
F(i+1);
}
int main(){
Func(100);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZTxmdW5jdGlvbmFsPgoKdm9pZCBGdW5jKGludCBpKXsKCXN0YXRpYyBzdGQ6OmZ1bmN0aW9uPHZvaWQoaW50KT4gRiA9IFtdKGludCBOKXsKCQlzdGQ6OmNvdXQ8PE48PHN0ZDo6ZW5kbDsJCgl9OwoKCUYoaSsxKTsKfQoKCmludCBtYWluKCl7CglGdW5jKDEwMCk7CgoJcmV0dXJuIDA7Cn0=