0_0_17730169_27297.cpp: In function 'int main()': 0_0_17730169_27297.cpp:47:23: error: 'ans' was not declared in this scope printf("%d\n",ans); ^