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_17625793_19022.cpp:64:10: error: '::main' must return 'int'
 int main()
          ^
0_0_17625793_19022.cpp: In function 'int main()':
0_0_17625793_19022.cpp:83:9: error: 'LL' was not declared in this scope
         LL ans=0,sum=0;
         ^
0_0_17625793_19022.cpp:86:35: error: incompatible types in assignment of 'long long int' to 'long long int [100050]'
         for (int i=1;i<=n;i++) sum+=dis[i];
                                   ^
0_0_17625793_19022.cpp:101:13: error: 'ans' was not declared in this scope
             ans+=(LL)(n-mem[i])*(LL)(mem[i])*(LL)dis[i];
             ^
0_0_17625793_19022.cpp:104:13: error: 'ans' was not declared in this scope
         dd=(ans+0.0)*2/n/(n-1);
             ^


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-06-17 06:09:14, Gzip enabled