Run id: 149671
Main.cc: In function 'int main()':
Main.cc:7:15: error: expected initializer before 'n'
int a[101]n,s=0,max=-1,min=101;
^
Main.cc:8:10: error: 'n' was not declared in this scope
cin>>n;
^
Main.cc:10:12: error: 'a' was not declared in this scope
cin>>a[i];
^
Main.cc:17:12: error: 's' was not declared in this scope
a[i]=s;
^
Main.cc:19:28: warning: format '%d' expects a matching 'int' argument [-Wformat=]
printf("%d %.2lf %d %d")s,s*1.0/n,max,min;
^
Main.cc:19:28: warning: format '%lf' expects a matching 'double' argument [-Wformat=]
Main.cc:19:28: warning: format '%d' expects a matching 'int' argument [-Wformat=]
Main.cc:19:28: warning: format '%d' expects a matching 'int' argument [-Wformat=]
Main.cc:19:29: error: expected ';' before 's'
printf("%d %.2lf %d %d")s,s*1.0/n,max,min;
^