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]);
^
|