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