0_0_37010760_29546.cpp: In function 'int main()': 0_0_37010760_29546.cpp:58:14: error: 'i' was not declared in this scope f[k] = p[i] - p[id1[j]]; ^