#include <iostream>
#include <map>
#include <string>
using namespace std;
class Test
{
private:
map<string, int> m;
public:
int &Submit( const string &s )
{
m[s] = 10;
return m[s];
}
void Create()
{
for( auto i = m.begin(); i != m.end(); i++ )
{
i->second = 1;
}
}
};
int main() {
Test t;
int &i = t.Submit( "Hello" );
cout << i << '\n';
t.Create();
cout << i << '\n';
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bWFwPgojaW5jbHVkZSA8c3RyaW5nPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY2xhc3MgVGVzdAp7CnByaXZhdGU6CgltYXA8c3RyaW5nLCBpbnQ+IG07CnB1YmxpYzoKCWludCAmU3VibWl0KCBjb25zdCBzdHJpbmcgJnMgKQoJewoJCW1bc10gPSAxMDsKCQlyZXR1cm4gbVtzXTsKCX0KCXZvaWQgQ3JlYXRlKCkKCXsKCQlmb3IoIGF1dG8gaSA9IG0uYmVnaW4oKTsgaSAhPSBtLmVuZCgpOyBpKysgKQoJCXsKCQkJaS0+c2Vjb25kID0gMTsKCQl9Cgl9Cn07CgppbnQgbWFpbigpIHsKCVRlc3QgdDsKCWludCAmaSA9IHQuU3VibWl0KCAiSGVsbG8iICk7Cgljb3V0IDw8IGkgPDwgJ1xuJzsKCXQuQ3JlYXRlKCk7Cgljb3V0IDw8IGkgPDwgJ1xuJzsKCXJldHVybiAwOwp9