Problem with GNU C++17 Compiler

Revision en2, by 5amia, 2023-09-07 11:41:11

I tried to solve Round 340 — Problem A

same code gives WA in GNU C++17 Compiler but is accepted in both the c++14 and c++20(64) compilers.

AC Submission (c++20)

AC Submission (c++14)

WA Submission (c++17)

I expected ceil(5*0.2) to be 1, but it's giving 2. What's causing this?

Tags c/c++, gnu c++17 vs c++14, gnu c++20, bug

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English 5amia 2023-09-07 11:41:11 17
en1 English 5amia 2023-09-07 04:49:11 558 Initial revision (published)