Блог пользователя Anshul_Mittal

Автор Anshul_Mittal, 28 часов назад, По-английски

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 ->

C++17 submission

C++20 submission

C++23 submission

Code
  • Проголосовать: нравится
  • +4
  • Проголосовать: не нравится

»
4 часа назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

I also faced the same issue in a different problem. Doesn't seem to find a solution.

»
75 минут назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

Don't you see orange triangle on submission page?