#include <iostream>
#include <string>
void print(void (*printer)(const std::string&))
{
printer("Message");
}
int main()
{
print([](const std::string& msg)
{
std::cout << msg << std::endl;
});
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKdm9pZCBwcmludCh2b2lkICgqcHJpbnRlcikoY29uc3Qgc3RkOjpzdHJpbmcmKSkKewogICAgcHJpbnRlcigiTWVzc2FnZSIpOwp9CgppbnQgbWFpbigpCnsKICAgIHByaW50KFtdKGNvbnN0IHN0ZDo6c3RyaW5nJiBtc2cpCiAgICAgICAgICB7CiAgICAgICAgICAgICAgc3RkOjpjb3V0IDw8IG1zZyA8PCBzdGQ6OmVuZGw7CiAgICAgICAgICB9KTsKICAgIHJldHVybiAwOwp9