0_0_21947334_28755.cpp: In function 'int main()': 0_0_21947334_28755.cpp:21:22: error: 'i' was not declared in this scope printf("%d %.9f\n",i,sum); ^