I am practicing C++ and I have written a program to solve the 12503 no problem of UVa. But there is something wrong in my code. Please help me to find where is the problem.