different result with different versions

Revision en1, by weaersedf, 2023-03-24 11:09:27

what is the reason that sometimes when I submit a code with version of c++ I get different results for example I sent the same code once with GNU C++20 (64) : https://mirror.codeforces.com/contest/196/submission/198388633 and GNU C++17: https://mirror.codeforces.com/contest/196/submission/198388671 but as you can see one got memory limit on test6 but the other one passed it(I know none of them got accepted but still the one with GNU C++17 passed more tests) this happened to me couple more times and even in some of them one got accepted and one didn't and this was just an example. I would appreciate it if you can explain this to me thanks!

Tags c++ version

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English weaersedf 2023-03-24 11:09:27 678 Initial revision (published)