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_30379127_22593.cpp: In function 'double cal(int, int)':
0_0_30379127_22593.cpp:30:25: error: 'sum' was not declared in this scope
     st=st,ed=ed;lf tmp=(sum[ed]-sum[st-1])/(n-m);
                         ^
0_0_30379127_22593.cpp:31:12: error: 'sqr' was not declared in this scope
     return sqr[ed]-sqr[st-1]-2*(sum[ed]-sum[st-1])*tmp+(n-m)*tmp*tmp;
            ^
0_0_30379127_22593.cpp: In function 'int main()':
0_0_30379127_22593.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_30379127_22593.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-06-29 11:30:03, Gzip enabled