0_0_22343477_18483.cpp: In function 'int main()': 0_0_22343477_18483.cpp:42:28: error: 'ans' was not declared in this scope printf("%I64d\n", ans); ^