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