title: Finding the Sum of 2D vector
body: <p>Having some trouble finding the sum of a 2D vector. Does this look ok?</p>
  
  <pre><code>int sumOfElements(vector&lt;iniMatrix&gt; &amp;theBlocks)
  {
    int theSum = 0;
  
    for(unsigned i=0; (i &lt; theBlocks.size()); i++)
    { 
      for(unsigned j=0; (j &lt; theBlocks[i].size()); j++)
      {
          theSum +=theBlocks[i][j];
      }
    }
  
    return theSum;
  }
  </code></pre>
  
  <p>It returns a negative number, however, it should return a positive number.. </p>
  
  <p>Hope someone can help :)</p>