0_0_16445288_21661.cpp: In function 'int main()': 0_0_16445288_21661.cpp:90:31: error: 'i' was not declared in this scope ans += (long long)i * tmp; ^