- what is this pair<string , int> ?? are these vector?? if yes then when we take input we use push function na??
- what are first and second here?? ther are not declared initially and then also they are running without any error??
Not able to understand some concepts
Hello @kushal1998,
- It is another Sequential Container available in STL which stores pairs. and yes push can be used.
- first is keyword used to access the first element of the pair and second is to access another.
You can read about this from this link.
Let me know if you do not understand anything.
I hope, this would help.
Give a like if you are satisfied.