double (*cube)[N][N];

cuble = (double (*)[N][N])malloc(sizeof(double) * N * N * N);