2013 2013 - 1 month ago 15
C++ Question

STL map declaration in c++

In a programming problem solution I got:

map<int,int>mp[200010];


Now can u please explain what does mp[200010] mean here?

Answer

You have an array of 200010 maps, where each element of the array is a map<int,int>. mp is the name of the variable.