Main.cc: In function 'int main()':
Main.cc:8:12: error: 'i' was not declared in this scope
max1=a[i];
^
Main.cc:16:55: error: 'prinntf' was not declared in this scope
prinntf("%d %.2lf %d %d",sum1,sum1*1.0/n,max1,min1);
^