#include <iostream>
#include <algorithm>
namespace foo
{
struct Bar
{
int data;
};
void init(Bar& bar)
{
bar.data = 42;
}
}
int main()
{
//using foo::init;
//using namespace foo;
foo::Bar bar;
init(bar);
std::cout << bar.data << std::endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8YWxnb3JpdGhtPgoKbmFtZXNwYWNlIGZvbwp7CiAgICBzdHJ1Y3QgQmFyCiAgICB7CiAgICAgICAgaW50IGRhdGE7CiAgICB9OwogICAgCiAgICB2b2lkIGluaXQoQmFyJiBiYXIpCiAgICB7CiAgICAgICAgYmFyLmRhdGEgPSA0MjsKICAgIH0KfQoKaW50IG1haW4oKQp7CiAgICAvL3VzaW5nIGZvbzo6aW5pdDsKICAgIC8vdXNpbmcgbmFtZXNwYWNlIGZvbzsKICAgIAogICAgZm9vOjpCYXIgYmFyOwogICAgaW5pdChiYXIpOwogICAgCiAgICBzdGQ6OmNvdXQgPDwgYmFyLmRhdGEgPDwgc3RkOjplbmRsOwogICAgCiAgICByZXR1cm4gMDsKfQ==