0
double mean(int A[], int size)
{
int count = size;
    double sum = std::accumulate(A, A + count, 0 );
double ave = sum / count;
    return ave;
}

I've included numeric but dont know what to do from here

  • Did you spell your function `mean` in one place but `MEAN` in another? – nneonneo Feb 27 '14 at 19:58
  • @nneonneo won't it rise some kind of `undefined symbol` error as `c++` is case-sensetive? – baldrs Feb 27 '14 at 20:01
  • Possible duplicate of [What is an undefined reference/unresolved external symbol error and how do I fix it?](https://stackoverflow.com/questions/12573816/what-is-an-undefined-reference-unresolved-external-symbol-error-and-how-do-i-fix) – valiano Oct 12 '17 at 17:42

0 Answers0