#include <iostream>
#include <vector>
using namespace std;
template<typename Range, typename Value>
void set_to(Range& range, const Value& value)
{
for (auto x : range)
{
x = value;
//cout << x;
}
}
int main()
{
std::vector<bool> bbb = {true , false, true};
//std::vector<int> bbb = {true , false, true};
cout << bbb[0] << bbb[1] << bbb[2] << std::endl;
set_to(bbb, false);
cout << bbb[0] << bbb[1] << bbb[2] << std::endl;
// your code goes here
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdGVtcGxhdGU8dHlwZW5hbWUgUmFuZ2UsIHR5cGVuYW1lIFZhbHVlPgp2b2lkIHNldF90byhSYW5nZSYgcmFuZ2UsIGNvbnN0IFZhbHVlJiB2YWx1ZSkgCnsKICAgIGZvciAoYXV0byB4IDogcmFuZ2UpCiAgICB7IAogICAgICAgIHggPSB2YWx1ZTsKICAgICAgICAvL2NvdXQgPDwgeDsKICAgIH0KfQoKaW50IG1haW4oKSAKewoJc3RkOjp2ZWN0b3I8Ym9vbD4gYmJiID0ge3RydWUgLCBmYWxzZSwgdHJ1ZX07CgkvL3N0ZDo6dmVjdG9yPGludD4gYmJiID0ge3RydWUgLCBmYWxzZSwgdHJ1ZX07Cgljb3V0IDw8IGJiYlswXSA8PCBiYmJbMV0gPDwgYmJiWzJdIDw8IHN0ZDo6ZW5kbDsKCXNldF90byhiYmIsIGZhbHNlKTsKCQoJY291dCA8PCBiYmJbMF0gPDwgYmJiWzFdIDw8IGJiYlsyXSA8PCBzdGQ6OmVuZGw7CgkvLyB5b3VyIGNvZGUgZ29lcyBoZXJlCglyZXR1cm4gMDsKfQo=