0_0_27418288_24871.cpp: In function 'int main()': 0_0_27418288_24871.cpp:43:9: error: 'ans' was not declared in this scope cout<<ans<<endl; ^