0_0_32400887_15201.cpp: In function 'int main()': 0_0_32400887_15201.cpp:56:15: error: 'k' was not declared in this scope int tmp=(k%P[j]-k%P[j-1])/P[j-1]; ^