sum of squares matrices
<p>I want to do a function that given 2 matrix returns the sum of both.I think the problem is in how I initialize the Matrix 't'.</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;vector&gt;

using namespace std;
typedef vector&lt; vector&lt;int&gt; &gt; Matrix;
    Matrix sum(const Matrix&amp;a,const Matrix&amp;b){
           Matrix t;
           for(int i=0;i&lt;a.size();i++)
               for(int j=0;j&lt;a.size();j++)
                   t[i][j] = a[i][j] + b[i][j];


           return t;
    }
</code></pre>
