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