shawnl9025's blog

By shawnl9025, history, 8 years ago, In English

So I got this RTE: Test: #5, time: 0 ms., memory: 2396 KB, exit code: -1073741819, checker exit code: 0, verdict: RUNTIME_ERROR

But it runs fine on my computer, what's wrong?

submission #: 17999254 question link: http://codeforces.com/contest/675/problem/C

Thanks a lot to anyone that helps

  • Vote: I like it
  • -13
  • Vote: I do not like it

| Write comment?
»
8 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Try to use Debugger, i think that somewhere your program calls defunct element of array like num[-1] or num[10000000]

»
8 years ago, # |
Rev. 2   Vote: I like it +8 Vote: I do not like it

This negative exit code is Runtime Error.
You was accessing num[x] where x far exceeds your array size. I changed num to map so it's now runtime error #7 instead of #5. You do the rest of debugging.
18003703