Sorry for post a lot

My problem is like this: I have to define an n+n matrix. Obviusly that is not a problem. The question is that in each element of the matrix, I have to define, say, k elements more.

It would be like this:

But my compiler say I defined in a wrong way cx and cy. I tried to define them asCode:for(i=0;i<10;i++){ for(j=0;j<10;j++){ for(k=0;k<NSTEPS-1; k++){ cx[i][j][k]=i*k; //This is not obviusly what I'm tring to do cy[i][j][k]=j*k; printf("%f %f \n",cx[i][j][k],cy[i][j][k]); } } }

¿Do anybody know how can i defined that arrays? Thanks!Code:double cx[11][11][NSTEPS],cy[11][11][NSTEPS];