artworks's blog

By artworks, history, 3 months ago, translation, In English,

Why it is getting "Exit code is -1073741819" in my submission, https://codeforces.com/contest/1269/submission/67523013 ? Locally there is no error. Python 3.8.0. How to get the real exception?

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

»
3 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been translated by artworks (original revision, translated revision, compare)

»
3 months ago, # |
  Vote: I like it 0 Vote: I do not like it

If a program is crashing on Codeforces but not locally, a good way to debug this is by testing it on the custom invocation tab. In your case, commenting out

import unittest

does the trick. Codeforces probably doesn't support the module.

  • »
    »
    3 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Commenting out import unittest fixed this one but on the custom invocation tab there is no additional info on the error :( I guess Python is set up to hide such errors.