0

Im having some problems identifying where my error is. I've read through the post on this topic and applied the responses to my code but it's still giving me a warning. I am trying to use an array to compute the average of 10 numbers.

```
#include <iostream>
using namespace std;
double arrayAverage (double sumAverage[10]) ;
int main(){
double sumAverage[10];
int k ;
double sum ;
double average = 0 ;
k = 0;
sum = 0;
cout << "Input 10 positive numbers" << endl;
cin >> sumAverage[k];
arrayAverage(sumAverage);
return 0;
}
double arrayAverage(double sumAverage[10]){
for(int k = 0; k < 10; k ++){
double sum = sum + sumAverage[k];
double average = sum/10;
cout << "The average of your 10 numbers is" << average << endl;
return k;
}
}
```