title: Associated values from two different file
body: <p>I have a vector of vector. I'd like to read its first components and delete it from the vector if it is less than a specific value or if it is bigger than another value. How can I do this?
  My code is:</p>
  
  <pre><code>int d = sum_et.size();                
  vector &lt;float&gt;sum_et                                    
  vector &lt;float&gt;sum_ieta_iphi;
  vector &lt;vector&lt;float&gt; &gt;v;
  sum_et.push_back(energySum);
  sum_ieta_iphi[0]=energySum;
  sum_ieta_iphi[1]=ieta;
  sum_ieta_iphi[2]=iphi;
  v.push_back(sum_ieta_iphi);
  float max,min;
  max=sum_et[(int)(19/20*d)];
  min=sum_et[(int)(d/20)];
  
  
  for (int i=0;i&lt;v.size();i++){
  /* line 312 */  if (v[i[0][0][0]]&lt;min || v[i[0][0][0]]&gt;max){
  /* line 313 */      v.erase(v[i]);
    }
  }
  </code></pre>
  
  <p>I get these errors:</p>
  
  <pre><code>Analysis.cc:312:16: error: invalid types 'int[int]' for array subscript   
  Analysis.cc:312:37: error: invalid types 'int[int]' for array subscript
  Analysis.cc:313:14: error: no matching function for call to 'std::vector&lt;std::vector&lt;float&gt; &gt;::erase(std::vector&lt;float&gt;&amp;)'
  </code></pre>