I'm not sure whats going on im getting a run time error and im not really sure how to fix it. I have included a print screen image of the the error in the attachments.

Code:#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> void GetValues(int x[], int *pN); int FindBig(int x[], int n); int FindSml(int x[], int n); float FindAvg(int x[], int n); void main() { int a[100], myBig, mySml, n; float myAvg; GetValues(a,&n); myBig=FindBig(a,n); mySml=FindSml(a,n); myAvg=FindAvg(a,n); printf("The largest value is: %d\n",myBig); printf("The smallest value is: %d\n",mySml); printf("The average value is: %.2f\n",myAvg); } void GetValues(int x[], int *pN) { int i; printf("Enter Number Of Values: "); scanf("%d", &*pN); for(i = 0; i < *pN; i++) { printf("Enter Value: "); scanf("%d",&x[i]); } } int FindBig(int x[], int n) { int myBig,i; myBig = x[0]; if(x[i]>myBig) { myBig = x[i]; return myBig; } return 0; } int FindSml(int x[], int n) { int mySml,i; mySml = x[0]; if(x[i]<mySml) { mySml = x[i]; return mySml; } return 0; } float FindAvg(int x[], int n) { { float sum,*pN, myAvg, i; sum = 0; sum+=x[n]; myAvg=(float)((float)sum / *pN); return myAvg; } return 0; }