#include #include using namespace std; // Pairs void ExplainPair() { pair p = {1, 3}; cout << p.first << " " << p.second; // 1 3 pair> po = {1, {3, 4}}; cout << po.first << " " << po.second.first << " " << po.second.second; // 1 3 4 pair arr[] = {{1, 2}, {2, 5}, {5, 1}}; cout << arr[1].second; // gives output 5 }