0_0_20613508_8579.cpp:2:5: error: 'max' does not name a type
max) max=mark[i]; } s1=max; double ans; ans=0.01; for(i=0;i<=s2;i++) { ans+=(i*1.0/s2)*(mark[s2-i]*1.0/s1); } printf("%.6f\n",ans); } return 0;}
^
0_0_20613508_8579.cpp:2:45: error: expected declaration before '}' token
max) max=mark[i]; } s1=max; double ans; ans=0.01; for(i=0;i<=s2;i++) { ans+=(i*1.0/s2)*(mark[s2-i]*1.0/s1); } printf("%.6f\n",ans); } return 0;}
^
|