Main.cc: In function 'int main()':
Main.cc:6:2: error: expected initializer before 'cin'
cin>>n;
^
Main.cc:11:3: error: expected ';' before 'if'
if(a[i]>maxn)
^
Main.cc:18:18: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
printf("%.2f",pj)
^
Main.cc:19:2: error: expected ';' before 'cout'
cout<<" "<