F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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;}
                                             ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-25 09:48:31, Gzip enabled