0_0_17778011_3378.cpp: In function 'int main()': 0_0_17778011_3378.cpp:5:19: error: 'scanf' was not declared in this scope scanf("%d", &n); ^ 0_0_17778011_3378.cpp:20:27: error: 'printf' was not declared in this scope printf("%d\n", ans); ^