title: Can anyone explain why am i getting "expression must have pointer to object type" in the following code:
body: <pre><code>#include&lt;iostream&gt;
  #include&lt;conio.h&gt;
  #include&lt;array&gt;
  
  using namespace std;
  int main(){
      system(&quot;cls&quot;);
      int n, l, m;
      int a[100][100], b[100][100], m[100][100];
      //inputing
      cout&lt;&lt;&quot;For the multiplication of the matrices NxL &amp; LxM: \n&quot;;
      cout&lt;&lt;&quot;Enter N: &quot;;
      cin&gt;&gt;n;
      cout&lt;&lt;&quot;Enter L: &quot;;
      cin&gt;&gt;l;
      cout&lt;&lt;&quot;Enter M: &quot;;
      cin&gt;&gt;m;
      cout&lt;&lt;&quot;Enter the first matrix: &quot;;
      for(int i=0; i&lt;n; i++){
          for(int j=0; j&lt;l; j++){
              cout&lt;&lt;i&lt;&lt;&quot;:&quot;;
              cin&gt;&gt;a[i][j];
          }
          cout&lt;&lt;&quot;         \n&quot;;
      }
      cout&lt;&lt;&quot;Enter the second matrix: &quot;;
      for(int i=0; i&lt;l; i++){
          for(int j=0; j&lt;m; j++){
              cout&lt;&lt;i&lt;&lt;&quot;:&quot;;
              cin&gt;&gt;a[i][j];
          }
          cout&lt;&lt;&quot;         \n&quot;;
      }
      //multiplying
      for(int i=0; i&lt;n; i++)
          for(int j=0; j&lt;l; j++){
              m[i][j] = a[i][j]*b[j][i]);
          }
      }
      getch();
      system(&quot;cls&quot;);
      return 0;
  }
  </code></pre>
  <blockquote>
  <p>I am trying to multiply two matrices in this code, but this statement is creating a major problem. Please tell how to solve this error.
  it is giving me error in the line <code>m[i][j] = a[i][j]*b[j][i]);</code></p>
  </blockquote>