0_0_21684587_30672.cpp: In function 'int main()': 0_0_21684587_30672.cpp:25:22: error: 'i' was not declared in this scope printf ("%d\n",sum[i]); ^