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