I was unable to make pair of three elements

please check my code-https://ide.codingblocks.com/s/269283

@Nikhil-Jettley-2567269533523013 corrected


dont forget to hit like and mark resolved if cleared :smiley:

sir the link which was given by you is not opening ,show error 404!

please resend the code link

@Nikhil-Jettley-2567269533523013
#include
#include
using namespace std;

int main()
{
int n;
cin>>n;
pair<pair<int,int>,int>arr[n];
for(int i=0;i<n;i++)
{
int a,b,c;
cin>>a>>b>>c;
arr[i]=make_pair(make_pair(a,b),c); ////////////////////////////////////////////////////////////////////
}
for(int i=0;i<n;i++)
{
cout<<arr[i].first.first<<" “<<arr[i].first.second<<” "<<arr[i].second<<endl;
}

return 0;

}

just changed one line