title: How to iterate map<int, vector <int>>?
body: <p>I have map&lt;int, vector &gt; like this:</p>
  <pre><code>#include &lt;iostream&gt;
  #include &lt;map&gt;
  #include &lt;vector&gt;
  
  using namespace std;
  
  int main() {
      
      map&lt;int, vector &lt;int&gt;&gt; someMap;
      someMap[5] = {5, 2, 3, 7};
      someMap[151] = {5, 9, 20};
  
      return 0;
  }
  </code></pre>
  <p>I need to find the last vector element in each map value. Output must be like this:</p>
  <pre><code>7
  20
  </code></pre>
  <p>Thanks :)</p>