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

Автор aryan57, история, 3 года назад, По-английски

I was solving this problem on cf . My c++ code got accepted but it is giving segmentation fault in my local computer. Why is it so? I also tried other online compilers like ideone , and it was working there too.

Same case with java. My java code got AC in cf but gives stackoverflow error in my computer.

My operating system is Ubuntu 20.04

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

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

Auto comment: topic has been updated by aryan57 (previous revision, new revision, compare).

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

Maybe the stack size is bigger in codeforces?
check this post for details about compilation flags of cf.

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

even the editorial code gives stackoverflow in local computer https://codeforces.com/blog/entry/89137

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

Local compiler? Is it exactly segfault (not smth exception or another signal)?
Input on which fails?

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