The Difference between GNU G++20 11.2.0 and GNU G++17 7.3.0 leading to runtime error?

Revision en1, by gtheoden42, 2023-09-15 12:41:35

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.

Tags data structures, c++, gnu c++

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English gtheoden42 2023-09-15 12:41:35 862 Initial revision (published)