#include <string>
#include <iostream>
int main()
{
unsigned char myVar[10] = "abcdefg";
std::string res(myVar, myVar + 7);
std::cout << res;
}
I2luY2x1ZGUgPHN0cmluZz4KI2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oKQp7CiAgICB1bnNpZ25lZCBjaGFyIG15VmFyWzEwXSA9ICJhYmNkZWZnIjsKICAgIHN0ZDo6c3RyaW5nIHJlcyhteVZhciwgbXlWYXIgKyA3KTsKICAgIHN0ZDo6Y291dCA8PCByZXM7Cn0=