0_0_24157180_10646.cpp: In function 'int main()': 0_0_24157180_10646.cpp:56:13: error: 'i' was not declared in this scope cout<<ans[i]<<endl; ^