title: Cant print an 2d array in function c++
body: <p>I have a problem with printing isSymmetric function, I don't know how to print it correctly. And I couldn't find a solution for this in google.</p>
  <pre><code>#include &lt;iostream&gt;
  #include &lt;iomanip&gt;
  
  using namespace std;
  
  const int MAX = 100;
  
  void transpose(int mat[MAX][MAX], int tr[][MAX], int N)
  {
      for (int i = 0; i &lt; N; i++)
          for (int j = 0; j &lt; N; j++)
              tr[i][j] = mat[j][i];
  }
  
  bool isSymmetric(int mat[MAX][MAX], int N)
  {
      int tr[MAX][MAX];
      transpose(mat, tr, N);
      for (int i = 0; i &lt; N; i++)
          for (int j = 0; j &lt; N; j++)
              if (mat[i][j] != tr[i][j])
                  return false;
      return true;
  }
  
  void main() {
      int matrix_size;
      cout &lt;&lt; &quot;Enter rows and columns for quaratic matrix: &quot;;
      cin &gt;&gt; matrix_size;
      //int* a = (int*)malloc(row * col * sizeof(int));
      const int col = 99, row = 99;
      int a[col][row];
      srand((unsigned)time(NULL));
      for (int i = 0; i &lt; matrix_size; i++)
          for (int j = 0; j &lt; matrix_size; j++)
              a[i][j] = 0 + rand() % (20 - 0 + 1);
      cout &lt;&lt; endl;
      for (int i = 0; i &lt; matrix_size; i++) {
          for (int j = 0; j &lt; matrix_size; j++)
              cout &lt;&lt; setw(4) &lt;&lt; a[i][j];
          cout &lt;&lt; endl;
      }
      //if (isSymmetric(a, matrix_size)) has a problem
      if (isSymmetric(a, matrix_size))
          cout &lt;&lt; &quot;Yes&quot;;
      else
          cout &lt;&lt; &quot;No&quot;;
  }
  </code></pre>
  <p>I get the following error and I have no clue what its sayings
  Error (active)  E0167   argument of type &quot;int (<em>)[99U]&quot; is incompatible with parameter of type &quot;int (</em>)[100]&quot;</p>