Mr_Knowbody's blog

By Mr_Knowbody, history, 2 months ago, In English

I have faced this problem before. Why the same code's output in GNU C++ 11 is not equal in GNU C++ 17.

GNU C++ 11

GNU C++ 17

both of them have different outputs in test case 1.

ty.

 
 
 
 
  • Vote: I like it
  • -20
  • Vote: I do not like it

»
2 months ago, # |
  Vote: I like it +11 Vote: I do not like it

pow is bad and is w/doubles so you should probably not use it for ints lol