この質問でアドバイスいただいたように、

int maxDoubleArray(int a[],int size) {...}

の箇所を

double maxDoubleArray(double a[],int size) {...}

と直したのですが、以下のようなエラーが出てしまいました。

format ‘%lf’ expects argument of type ‘double *’, but argument 2 has
type ‘int *’ [-Wformat=]    scanf("%lf", &a[i]);
          ~~^   ~~~~~
          %d ex1205.c: In function ‘printDoubleArray’: ex1205.c:18:12: warning: format ‘%f’ expects argument of type ‘double’, but argument 2
has type ‘int’ [-Wformat=]    printf("%f ", a[i]);
           ~^    ~~~~
           %d ex1205.c: In function ‘main’: ex1205.c:43:21: warning: passing argument 1 of ‘readDoubleArray’ from incompatible pointer type
[-Wincompatible-pointer-types]
     readDoubleArray(data, 10);
                     ^~~~ ex1205.c:4:6: note: expected ‘int *’ but argument is of type ‘double *’  void readDoubleArray(int a[], int
size)
      ^~~~~~~~~~~~~~~ ex1205.c:45:22: warning: passing argument 1 of ‘printDoubleArray’ from incompatible pointer type
[-Wincompatible-pointer-types]
     printDoubleArray(data, 10);
                      ^~~~ ex1205.c:14:6: note: expected ‘int *’ but argument is of type ‘double *’  void printDoubleArray(int a[], int
size)
      ^~~~~~~~~~~~~~~~ ```

このようなエラーには、どう対処したら良いですか。