0_0_29875368_20091.cpp: In function 'int main()': 0_0_29875368_20091.cpp:28:8: error: 'ans' was not declared in this scope ans = 0; ^