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:

Code:

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]);
}
}
}

But my compiler say I defined in a wrong way cx and cy. I tried to define them as

Code:

double cx[11][11][NSTEPS],cy[11][11][NSTEPS];

¿Do anybody know how can i defined that arrays? Thanks!