Main.cc: In function 'int main()':
Main.cc:10:5: error: expected initializer before 'cin'
cin>>n;
^
Main.cc:17:5: error: 'ave' was not declared in this scope
ave=tot/n;
^
Main.cc:19:5: error: expected ';' before 'return'
return 0;
^