0_0_29615161_7387.cpp: In function 'int main()': 0_0_29615161_7387.cpp:60:32: error: 'i' was not declared in this scope printf("%d\n", ans[i]); ^