Main.cc: In function 'int main()':
Main.cc:6:9: error: 'cin' was not declared in this scope
cin>>a[i];
^
Main.cc:10:29: error: 'printf' was not declared in this scope
printf("%.2lf\n",average);
^
Main.cc:13:13: error: 'cout' was not declared in this scope
cout<a[i]<<" ";
^