insurgentes's blog

By insurgentes, history, 5 years ago, In English

Hi all, I'm getting a runtime error while trying to submit my solution for 1588C - Game with Stones which I cannot replicate on the custom invocation tab or locally in vscode. Any help debugging this would be very appreciated.

My code submission: 135533102

UPDATE: I was able to edit the logic for modifying the map to get A/C but unable to see what the issue was. New submission- 135560689

  • Vote: I like it
  • +2
  • Vote: I do not like it

| Write comment?
»
5 years ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

What do you think is container.rend().base()?

while (it != endings.rend())
            {
                if (it->first + offset > x)
                {
                    advance(it, 1);
                    endings.erase(it.base());
                }
                else
                {
                    break;
                }
            }
»
5 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

your submission link is for 1588C-game with stones, while you have tagged the question 1584C-Two Arrays as your question and i agree with you sometimes it is throwing RTE on custom invocation and sometime it is working fine.

»
5 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by insurgentes (previous revision, new revision, compare).