这什么地方不对?请大神指点
int getMax(int count,arr[]) {int maxNum=arr[0]; for(int i = 1; i < count; i++) {if(maxNum<arr[i]){ maxNum=arr[i];} }return maxNum; } int main(void) {int numArr[3] = {3, 8, 6}; cout << getMax(getMax(numArr[0],numArr[1]), numArr[2]) << endl; cout << getMax(3,numArr) << endl; return 0; }