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