int zapCopr(int c[3][3], int a[3][3], int b[3], int o) { for (int i = 0; i < 3; ++i) { for (int j = 0; j < 3; ++j) c[i][j] = a[i][j]; } for (int i = 0; i < 3; ++i) c[i][o] = b[i]; int opr= c[0][0] * c[1][1] * c[2][2] + c[0][1] * c[1][2] * c[2][0] + c[1][0] * c[2][1] * c[0][2] - c[0][2] * c[1][1] * c[2][0] - c[2][1] * c[1][2] * c[0][0] - c[0][1] * c[1][0] * c[2][2]; return opr; } This feature should do business. I insert a function into the code. I put in arguments like arr[3][3] , but that's all. The compiler declares that this array has an index type, and I need a whole.
zapCopr(c,a,b,1)What you did was transfer the SPECIFIC element of the array, but it also does not exist :) - Harry