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