These are the errors I am getting.

test.c:17: error: expected ) before [ token

test.c: In function main:

test.c:28: warning: unused variable arrZ

test.c: At top level:

test.c:122: error: expected ) before [ token

Here is my code:

Code://includes #include <stdio.h> #include <math.h> //Macros: #define SIZE 20 #define SENTINEL -99 //function prototypes int countElementsX ( const double arrX[] ); int countElementsY ( const double arrY[] ); void multiplyArrays( const double arrx [], const double arry[], double arrz [], int n); void printArrays(arrX[], arrY[], arrZ[]); void root (double arrZ[] ); int main( void ) { //variables in my functions. //double arrays x and y, z all have 20 elements, and should each be initialized to have 0 in each element double arrX[SIZE] = {0}; double arrY[SIZE] = {0}; double arrZ[SIZE] = {0}; int m,n; //will be the real number of elements in the arrays int i; //counting variable //Get the input from the user for array X: printf("please input at most %d numbers separated by blanks. Make the last number in your list %d> ", (SIZE-1), SENTINEL); for (i = 0; i< SIZE; ++i) scanf("%lf", &arrX[i]); //Get input from the user for array Y: printf("Again, please input your second list of at most %d numbers separated by blanks.Make the last number in your list %d> ", (SIZE-1), SENTINEL); for (i = 0; i< SIZE; ++i) scanf("%lf", &arrX[i]); n= countElementsX (arrX); printf("The first array has %d elements", n);