pushback data from vector to vector of map
<p>i have created a map called select_p and vector of this map is called pts. i have stored data in a array and i want to pushbcak these data into my vector of map. i tried this by inserting value of array into new vector and then pushback into my map.but it is not working please help me to correct these codes? thanks </p>

<pre><code>#include&lt;iostream&gt;
#include&lt;cstdlib&gt;
#include &lt;map&gt;
#include &lt;vector&gt;

using namespace std;
int main()
{
    int M=7;
    int N=6;
    int i=0;
    int * temp;
    map&lt;int,vector&lt;int&gt; &gt; select_p;
    vector&lt;int&gt;pts;

    for (int m=0; m&lt;M; m++)
    {
        for (int n=0; n&lt;N; n++)
        {
            vector&lt;int&gt;id;
            if (n==0 &amp;&amp; m==5)
            {
               temp = new int[3,i+N,i+N+1,i+1];
               unsigned ArraySize = sizeof(temp) / sizeof(int);
               id.insert(id.begin(),temp[0], temp[ArraySize]);
               select_p[i].push_back(id);
            }
            i++;
        } 
    }
    delete[] temp;

    system("PAUSE");   
    return 0;   
}
</code></pre>
