Why it is necessary to define custom pair?What is the use of typedef here?
Why are we using typedef to define pair?
It ain’t necessary to define custom pair, it’s just if you’ll do it then instead of writing pair<int,pair<int,int>> you can write whatever you would have assigned it in typedef syntax.