0_0_18912676_5228.cpp: In function 'int main()': 0_0_18912676_5228.cpp:27:32: error: 'i' was not declared in this scope printf("%d\n", f[B[i]]-f[A[i]-1]); ^