Блог пользователя BARBARIANNNNN

Автор BARBARIANNNNN, история, 22 месяца назад, По-английски

Todday, when i am submit my code, the result is Compilation error.

But the reason of that is Can't compile file:Compilation process timed out.

my submission

And the code can work well in my computer. So what's happening? Is this a bug? What can i do for it?

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
22 месяца назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

And the more stupid thing is that when i want to submit it again, it can't be submitted because of same code.

»
22 месяца назад, # |
  Проголосовать: нравится +11 Проголосовать: не нравится

It seems that only this problem have such problem. MikeMirzayanov please fix it.

»
22 месяца назад, # |
Rev. 7   Проголосовать: нравится 0 Проголосовать: не нравится

The issue is in your struct node. The default opeator $$$=$$$ seems to have bug and writing constructor can fix it. 189669100

I believe this is some kind of GCC bugs. And I faced this exact issue years ago as well. 85383716

My issue back then was also in this line

Spoiler

After that, I never use default assignment in struct again and always write constructor instead.

The reason it worked on your computer might be because you use later version of GCC and this is already fixed on that version. But the GCC version is not updated here very frequently, so I guess we can do nothing, but wait or request for the new update.