what is the correct type for this loop?
<p>where RoomCentreNodeVectors is a vector of vectors of ints.
roomKills is a vector of ints and level.Nodes() returns a vector of Node objects. The Node object's Room() function returns and int.</p>

<pre><code>for (std::vector&lt;std::vector&lt;int&gt;&gt;::size_type i = 0; i &lt; level.RoomCentreNodeVectors().size(); i++)
{
    RoomKills.push_back(level.Nodes()[level.RoomCentreNodeVectors()[i][0]].Room());
}
</code></pre>

<p>or</p>

<pre><code>for (std::vector&lt;int&gt;::size_type i = 0; i &lt; level.RoomCentreNodeVectors().size(); i++)
{
    RoomKills.push_back(level.Nodes()[level.RoomCentreNodeVectors()[i][0]].Room());
}
</code></pre>
