In the end of the function main you are trying to pass a variable to a function that receives a pointer (MaxSales). You need to pass the address of this variable, using the operator &, as showed bellow.
MaxSales(&Com[1]); return 0;