#include <utility>
#include <iostream>
std::pair<double,double> * pairArr;
int main(){
pairArr = new std::pair<double,double> [3]; //creating the array
pairArr [0] = std::make_pair(1.0,1.2); //Filling arbitrary numbers
pairArr [1] = std::make_pair(0.2,1.4);
pairArr [2] = std::make_pair(0.8,1.3);
std::cout << pairArr[0].first << pairArr[1].second << pairArr[2].first;
return 0;
}
I2luY2x1ZGUgPHV0aWxpdHk+CiNpbmNsdWRlIDxpb3N0cmVhbT4Kc3RkOjpwYWlyPGRvdWJsZSxkb3VibGU+ICogcGFpckFycjsKaW50IG1haW4oKXsKICAgcGFpckFyciA9IG5ldyBzdGQ6OnBhaXI8ZG91YmxlLGRvdWJsZT4gWzNdOyAgIC8vY3JlYXRpbmcgdGhlIGFycmF5CgogICBwYWlyQXJyIFswXSA9IHN0ZDo6bWFrZV9wYWlyKDEuMCwxLjIpOyAgICAgICAgICAgICAvL0ZpbGxpbmcgYXJiaXRyYXJ5IG51bWJlcnMKICAgcGFpckFyciBbMV0gPSBzdGQ6Om1ha2VfcGFpcigwLjIsMS40KTsKICAgcGFpckFyciBbMl0gPSBzdGQ6Om1ha2VfcGFpcigwLjgsMS4zKTsKCiAgIHN0ZDo6Y291dCA8PCBwYWlyQXJyWzBdLmZpcnN0IDw8IHBhaXJBcnJbMV0uc2Vjb25kIDw8IHBhaXJBcnJbMl0uZmlyc3Q7CiAgIHJldHVybiAwOwp9