#include <thread>
#include <future>
#include <string>
struct arg_t {
std::string fName;
std::string str;
};
int startOver(int i, arg_t args)
{
return args.fName.size() + args.str.size() + 42;
}
int main()
{
const std::string arg = "yes";
arg_t args = { "comBomber", arg };
auto worker = std::async(startOver, 0, args);
return worker.get();
}
I2luY2x1ZGUgPHRocmVhZD4KI2luY2x1ZGUgPGZ1dHVyZT4KI2luY2x1ZGUgPHN0cmluZz4KCnN0cnVjdCBhcmdfdCB7CiAgICBzdGQ6OnN0cmluZyBmTmFtZTsKICAgIHN0ZDo6c3RyaW5nIHN0cjsgCn07CgppbnQgc3RhcnRPdmVyKGludCBpLCBhcmdfdCBhcmdzKQp7CiAgICByZXR1cm4gYXJncy5mTmFtZS5zaXplKCkgKyBhcmdzLnN0ci5zaXplKCkgKyA0MjsKfQoKaW50IG1haW4oKQp7CiAgICBjb25zdCBzdGQ6OnN0cmluZyBhcmcgPSAieWVzIjsKICAgIGFyZ190IGFyZ3MgPSB7ICJjb21Cb21iZXIiLCBhcmcgfTsKICAgIGF1dG8gd29ya2VyID0gc3RkOjphc3luYyhzdGFydE92ZXIsIDAsIGFyZ3MpOwogICAgcmV0dXJuIHdvcmtlci5nZXQoKTsKfQo=