Напоминание: в случае технических проблем любого характера, вы можете использовать m1.codeforces.com, m2.codeforces.com, m3.codeforces.com. ×

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

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

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

Полный текст и комментарии »

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