0_0_34771642_18169.cpp: In function 'int main()': 0_0_34771642_18169.cpp:77:29: error: 'i' was not declared in this scope ans = (ans + (A/i)*(B/f2[i])%mod*(C/f3[i])%mod*f[i]%mod)%mod; ^