Almost a month trying to find bug — What should I do?

Revision en12, by rick_sanchez_c-137, 2017-08-10 20:31:37

Hello!

Regarding this line sweep problem with the editorial here my code is getting run time error on the last test case. I contacted the team support from the online judge Kattis but they did not allow me to see the test case where my code fails.

Can someone spot any mistake in my code I possibly made?

Thanks a lot in advance!

EDIT: In another submission (code here) when adding "if(it==mx1.end()) continue;" in line 180 I get WA instead of RE. Plus if I loop over all elements of the multiset when set.find fails (fail = returns set.end()) I get TLE as in this code. By looping over all elements the code seem to find the segment I want, but by a "manual" manner that is not fast enough. I only get the mentioned errors in the last test case that was created by the Kattis (not created by original author — a link I left on the comments may be useful to understand the situation). Also just so you know, kattis does not allow me to share the code straight from my account there, so I need to do it by pastebin.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en12 English rick_sanchez_c-137 2017-08-10 20:31:37 23
en11 English rick_sanchez_c-137 2017-08-01 21:00:00 29 Tiny change: 'in my code?\n\nTha' -> 'in my code I possibly made?\n\nTha' (published)
en10 English rick_sanchez_c-137 2017-07-31 02:32:35 17 (saved to drafts)
en9 English rick_sanchez_c-137 2017-07-29 19:56:26 30
en8 English rick_sanchez_c-137 2017-07-28 05:09:55 813 Tiny change: 'ontinue;" I get WA ' -> 'ontinue;" in line 180 I get WA '
en7 English rick_sanchez_c-137 2017-07-27 23:13:15 43
en6 English rick_sanchez_c-137 2017-07-27 01:03:19 50
en5 English rick_sanchez_c-137 2017-07-27 00:30:56 22 Tiny change: 'time error. I contac' -> 'time error on the last test case. I contac'
en4 English rick_sanchez_c-137 2017-07-27 00:26:21 81 Tiny change: 'attis.com/submissions/1920435) with the' -> 'attis.com/problems/pinball) with the'
en3 English rick_sanchez_c-137 2017-07-26 05:55:36 554
en2 English rick_sanchez_c-137 2017-07-08 22:01:46 53
en1 English rick_sanchez_c-137 2017-07-08 07:07:38 820 Initial revision (published)