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