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_30379191_19275.cpp: In function 'double cal(int, int)':
0_0_30379191_19275.cpp:30:29: error: 'sum' was not declared in this scope
     st=st,ed=ed;lf tmp=1.0*(sum[ed]-sum[st-1])/(n-m);
                             ^
0_0_30379191_19275.cpp:31:16: error: 'sqr' was not declared in this scope
     return (lf)sqr[ed]-(lf)sqr[st-1]-2*(lf)(sum[ed]-sum[st-1])*tmp+(lf)(n-m)*tmp*tmp;
                ^
0_0_30379191_19275.cpp: In function 'int main()':
0_0_30379191_19275.cpp:40:27: error: 'sum' was not declared in this scope
         n=read();m=read();sum[0]=sqr[0]=0;rp(i,1,n)scanf("%d",&a[i]);
                           ^
0_0_30379191_19275.cpp:40:34: error: 'sqr' was not declared in this scope
         n=read();m=read();sum[0]=sqr[0]=0;rp(i,1,n)scanf("%d",&a[i]);
                                  ^


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-29 13:49:41, Gzip enabled