gtheoden42's blog

By gtheoden42, history, 14 months ago, In English

Recently I was solving 1677B - Tokitsukaze and Meeting task and came up with a solution involving range sum update and point query. I implemented this simply using a Lazy Segment Tree for which I used this template from sharmaharisam.

However, my code gave a runtime error on test case 3 with GNU G++17 7.3.0 set as compiler but got AC with GNU G++20 11.2.0 set as compiler. I have no idea why this is happening but need help so that I can answer what is that which is not supported with the GNU G++17 that leads to the runtime error.

Here is the G++17 submission: 223460126 Here is the G++20 submission: 223458461

The two codes are exactly the same.

Full text and comments »

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