Hello, I've been having a problem with my arrays. The error that I am receiving says "[my array] undeclared (first use this function)" and "invalid types 'bool[int]' for array subscripts". My code has the following setup:
int array1[some size][some size];
int main(){
int array2[somesize];int array3[somesize][somesize];
int NUM; /*This number is assigned some value*/
int i;int x; /*some integers that is within the sizes of the arrays*/
.
.
.
array2[i-1]+=array1[i][x]; "invalid types 'bool[int]' for array subscripts" MY ERRORS
array1[1][array3[x][i]+1]+=NUM; "array1 undeclared (first use this function)". MY ERRORS
.
.
.
}
Thanks in advance for your time,