10774 - Repeated Josephus
Moderator: Board moderators
Well.. are you sure that the code is correct? (I.e. compiler problems only?) I don't have the time to check the whole problem statement and to understand each piece of the posted code, but he declared two maps and used only one of them -- the same map was used in both functions. This may be a bug. After I changed the map used in the second function from m to h, the code worked even with g++-2.95. Wasn't this the source of all the problems?