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://mirror.codeforces.com/contest/675/problem/C
Thanks a lot to anyone that helps
Try to use Debugger, i think that somewhere your program calls defunct element of array like num[-1] or num[10000000]
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