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