anguage-c++ highlighter-rouge"><span class="n">vec</span><span class="p">[</span><span class="n">i</span> <span class="o">+</span> <span class="mi">1</span><span class="p">]</span></code> reads off the end of the <code class="language-c++ highlighter-rouge"><span class="n">Vector</span></code>.</li>
  <li>The <code class="language-c++ highlighter-rouge"><span class="n">Vector</span></code> is passed in by value, not by reference, so none of the changes made to it will persist to the caller.</li>
</ol>

<p>H