R2-D2_hates_lemon's blog

By R2-D2_hates_lemon, history, 7 days ago, In English,

Hi everyone! Hope you guys a nice weekend!

Recently, I have tried to submit my solutions in both GNU C++17 and GNU C++17(64). The result is predictable, GNU C++17(64) is faster compared to GNU C++17. My question is: Is it safe to use C++17(64) in the real contest? I know that C++17(64) was just added a few months ago. So I don't know whether it may lead to some undefined behavior bugs or something like that...

Thanks for reading!

 
 
 
 
  • Vote: I like it
  • +11
  • Vote: I do not like it

»
7 days ago, # |
Rev. 2   Vote: I like it +1 Vote: I do not like it

Nevermind. I got confused.

»
7 days ago, # |
  Vote: I like it +1 Vote: I do not like it

Ofcourse it's safe that's why it is added. Don't worry just use it carefree.

»
7 days ago, # |
  Vote: I like it +4 Vote: I do not like it

I have seen C++ 17 (64) to give TLE where C++ 17 gives AC in a recent contest. I haven't looked at why it happens, but something to look out for I suppose.

Context: Comment from recent contest