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