Few days ago, I was practicing some questions. I got upon this question World is Mine. I got a RTE when submitting on C++20. Then, few days later I just ran the same code with C++17 compiler and got accepted verdict. Does anyone have an idea why same code is giving RunTime Error on C++20 but works fine on C++17. The error seems to be out of bound error but still why isn't C++17 giving the same error?
These are the submissions links ->
Code