Run id: 151359

Main.cc: In function 'int main()':
Main.cc:8:12: error: 'a' was not declared in this scope
       cin>>a[n];   
            ^
Main.cc:17:43: warning: format '%d' expects argument of type 'int', but argument 2 has type 'double' [-Wformat=]
  printf("%d %.2lf %d %d",b,b*1.0/n,max,min);   
                                           ^