title: Expression must have pointer-to-object type
body: <p>I have the following code in CUDA<br></p>
  
  <pre><code>__global__ void matvec(int *MAT, int *VEC, int *SOL)
  {
     int bx = blockIdx.x;
     int tx = threadIdx.x;
     int i = 32*bx+tx;
     for (int j = 0; j &lt; X; j++){
      SOL[i] = ((MAT[i][j] * VEC[j]) + SOL[i]) % 2;
     }
  }
  </code></pre>
  
  <p>My problem is that in line 6 I have an error. It says that my expression must have a pointer-to-object type.<br></p>