Compiler Behavior Confusion!

Revision en1, by Hasnaine_, 2020-04-26 08:18:22

Hello Community,

So I recently went through some strange situation while using different versions of the compiler in code forces. While solving 448C - Painting Fence, I wrote a basic straightforward dp code. But when I submitted the code in C++17(64 bit) it showed the verdict Runtime Error on test case 27 and I had no idea why. Then I tried to debug my code for hours later came up with no solution. Then for no reason when I submitted the same code in c++11 it got accepted in one go.

AC Code: 78082968

RTE Code: 78083039

Besides, I also faced a situation where a certain code gets Accepted in a compiler version but gets TLE in another version. Can you explain the reason? Thanks.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Hasnaine_ 2020-04-26 08:18:22 753 Initial revision (published)