0_0_34236665_21443.cpp: In function 'int main()': 0_0_34236665_21443.cpp:6:22: error: 'scanf' was not declared in this scope scanf("%d",&n); ^ 0_0_34236665_21443.cpp:15:22: error: 'printf' was not declared in this scope printf("%d\n",sum); ^