配列の要素の平方根が必要ですが、出力が間違っています!!! 私のエラーを修正するのを手伝ってもらえますか?配列をサイズ100に変更するにはどうすればよいですか?
 #include <math.h>
    #include <iostream>
    using namespace std;
    // function declaration:
    double sqrootx(int arr[], int size);
    int main ()
    {
       // an int array with 5 elements.
       double balance[5] = {1000, 2, 3, 17, 50};
       double sqr;
       // pass pointer to the array as an argument.
       sqr= pow( balance, 5 ) ;
       // output the returned value 
       cout << " result" << sqr << endl; 
       return 0;
    }