title: C++ Return value type does not match the function type
body: <p>I'm trying to return a matrix and in the method it's giving me the error: Return value type does not match the function type.</p>
  
  <p>Here is the matrix:</p>
  
  <pre><code>float obstaculos[20][4];
  </code></pre>
  
  <p>Here is the method:</p>
  
  <pre><code>float** getObstaculos() {
      return obstaculos;
  }
  </code></pre>
  
  <p>Do you know what the problem may be?</p>