0_0_15565535_15434.cpp: In function 'int main()': 0_0_15565535_15434.cpp:4:21: error: 'scanf' was not declared in this scope while(scanf("%d",&n)==1){ ^ 0_0_15565535_15434.cpp:10:18: error: 'printf' was not declared in this scope printf("%d\n",s); ^