0_0_18421227_20770.cpp: In function 'long long int solve(long long int)': 0_0_18421227_20770.cpp:45:9: error: 'ans' was not declared in this scope ans++; ^