Main.cc: In function 'int main()':
Main.cc:12:10: error: invalid conversion from 'int*' to 'int' [-fpermissive]
sum=sum+a;
^
Main.cc:32:16: warning: operation on 'sum' may be undefined [-Wsequence-point]
sum=sum+=a[i];
^
Main.cc:33:3: error: 'mx' was not declared in this scope
mx=sum/n;
^