ollapse-2">
   
<p>There are three errors here:</p>
<ol>
  <li>Calling <code class="language-c++ highlighter-rouge"><span class="p">.</span><span class="n">remove</span><span class="p">()</span></code> on the <code class="language-c++ highlighter-rouge"><span class="n">Vector</span></code> while iterating over it doesn‚Äôt work particularly nicely. Specifically, if you remove the element at index <code class="language-c++ highlighter-rouge"><span class="n">i</span></code> and then increment <code class=