Main.cc: In function 'int main()':
Main.cc:12:7: error: expected primary-expression before ';' token
sum=;
^
Main.cc:33:16: warning: operation on 'sum' may be undefined [-Wsequence-point]
sum=sum+=a[i];
^
Main.cc:34:3: error: 'mx' was not declared in this scope
mx=sum/n;
^