opencv 3.0 Mat not provide a subscript operator
<p>Im currently working on Opencv 3.0 C++ in Xcode 7.2. I have and code error written  </p>

<pre><code>Variable length array of non-POD element type cv::Mat
</code></pre>

<p>The sample code was define as below</p>

<pre><code>Mat symbol[opts.numofblocksX*opts.numofblocksY];
</code></pre>

<p>I have change the code to </p>

<pre><code>Mat symbol = symbol[opts.numofblocksX * opts.numofblocksY];
</code></pre>

<p>and it show another error </p>

<pre><code>cv::Mat doest not provide a subscript operator
</code></pre>

<p>Is there anyone facing the same problem before? what was the solutions I can implement here? </p>

<p>Thanks</p>