0_0_23286304_22632.cpp: In function 'int main()': 0_0_23286304_22632.cpp:32:33: error: 'x' was not declared in this scope temp+=1.0*(h[i]-x)*(h[i]-x)*(h[i]-x)/h[i]*r[i]/h[i]*r[i]; ^