ProjectCF's blog

By ProjectCF, history, 5 months ago, In English

AC WA

the only difference is language

sample AC on anywhere else I can test, except atcC++23(GCC15.2.0)

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

»
5 months ago, hide # |
Rev. 3  
Vote: I like it +30 Vote: I do not like it
  • »
    »
    5 months ago, hide # ^ |
     
    Vote: I like it +30 Vote: I do not like it

    I can't reproduce that example with 15.2.1, so the bug appears to be fixed upstream.

»
5 months ago, hide # |
 
Vote: I like it +9 Vote: I do not like it

One possible fix is to comment out line 80:

if (g <= 0)g = 0;

Feels like a compiler bug?

»
5 months ago, hide # |
Rev. 4  
Vote: I like it -31 Vote: I do not like it

Downvote because it a little off-topic? I think both problem are connected with GCC15.X ...