Run id: 121054

Main.cc: In function 'int main()':
Main.cc:11:16: error: 'n' was not declared in this scope
  b=double(sum)/n;
                ^
Main.cc:9:41: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  for(int i=1;i<=5;i++) scanf("%d",&a[i]);
                                         ^