title: Program to find two non-repeating numbers in an array
body: <p>I don't know about the vector class of int but why this code is not showing ArrayIndexOutOfBounds error like java.</p>
  <pre><code>for(int i = 0; i &lt; nums.size(); i++) {
      if(nums[i] == nums[i+1])
          i++;
      else            
          ret.push_back(nums[i]);        
  }
  </code></pre>