A bug in C++20 (GCC 13-64)?

Revision en2, by JaberSH1, 2024-04-23 11:30:40

The same solution was submitted in both C++17 (GCC 7-32) & C++20 (GCC 13-64).

AC submission passed with 0 KB on C++17 (GCC 7-32): 257826303

While it resulted in an MLE on C++20 (GCC 13-64): 257826268

The code uses linear memory and it failed on the 8th test which is only of size 10 :/

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English JaberSH1 2024-04-23 11:30:40 0 (published)
en1 English JaberSH1 2024-04-23 11:26:25 349 Initial revision (saved to drafts)