#include <iostream>
#include <map>
#include <string>
#include <vector>
int main( ) {
std:: map < std:: pair < int , int > , std:: string > mymap;
for ( int i = 0 ; i < 10 ; i = i + 2 ) {
std:: pair < int , int > temp;
temp.first = i;
temp.second = i+ 1 ;
std:: string temp2;
std:: cout << "Enter a string: " ;
std:: cin >> temp2;
mymap[ temp] = temp2;
}
int count = 0 ;
while ( count++ ! = 3 ) {
int temp, temp2;
std:: cout << "Enter a number: " ;
std:: cin >> temp;
std:: cout << "Enter another number: " ;
std:: cin >> temp2;
std:: pair < int , int > test;
test.first = temp;
test.second = temp2;
std:: cout << mymap[ test] << std:: endl ;
}
return 0 ;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bWFwPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8dmVjdG9yPgoKaW50IG1haW4oKSB7CgogICAgc3RkOjptYXA8c3RkOjpwYWlyPGludCwgaW50Piwgc3RkOjpzdHJpbmc+IG15bWFwOwogICAgZm9yKGludCBpID0gMDsgaSA8IDEwOyBpID0gaSArIDIpIHsKICAgICAgICBzdGQ6OnBhaXI8aW50LCBpbnQ+IHRlbXA7CiAgICAgICAgdGVtcC5maXJzdCA9IGk7CiAgICAgICAgdGVtcC5zZWNvbmQgPSBpKzE7CiAgICAgICAgc3RkOjpzdHJpbmcgdGVtcDI7CiAgICAgICAgc3RkOjpjb3V0IDw8ICJFbnRlciBhIHN0cmluZzogIjsKICAgICAgICBzdGQ6OmNpbiA+PiB0ZW1wMjsKICAgICAgICBteW1hcFt0ZW1wXSA9IHRlbXAyOwogICAgfQoKICAgIGludCBjb3VudCA9MDsKICAgIHdoaWxlKGNvdW50KysgIT0gMykgewogICAgICAgIGludCB0ZW1wLCB0ZW1wMjsKICAgICAgICBzdGQ6OmNvdXQgPDwgIkVudGVyIGEgbnVtYmVyOiAiOwogICAgICAgIHN0ZDo6Y2luID4+IHRlbXA7CiAgICAgICAgc3RkOjpjb3V0IDw8ICJFbnRlciBhbm90aGVyIG51bWJlcjogIjsKICAgICAgICBzdGQ6OmNpbiA+PiB0ZW1wMjsKCiAgICAgICAgc3RkOjpwYWlyPGludCwgaW50PiB0ZXN0OwogICAgICAgIHRlc3QuZmlyc3QgPSB0ZW1wOwogICAgICAgIHRlc3Quc2Vjb25kID0gdGVtcDI7CiAgICAgICAgc3RkOjpjb3V0IDw8IG15bWFwW3Rlc3RdIDw8IHN0ZDo6ZW5kbDsKICAgIH0KCiAgICByZXR1cm4gMDsKfQ==