Hello! In my submission 80851257 to the problem E. Graph Coloring I'm getting RUNTIME_ERROR with Exit Code -1073741819. I don't know what's wrong with my code? I tried in my IDE it's working fine, Also I run same code on online IDE:Can see here and it's running fine but it is giving RUNTIME_ERROR on CF.Can Anyone Explain?
In this block when i=r, a[i].size() and b[i].size() gives the runtime error as a[r] and b[r] is out of bound for a and b. Change that to a[i-1] and b[i-1] and it should work without RTE.
Ohh!Thank you.I got it.
$$$-1073741819 = -(2^{30})+5$$$. Add $$$2^{30} + 5$$$ to your program and it will exit with code 0, so it will be correct.
And where to add 2^30+5 ?
In the part responsible for the exit code.
But which part?And How to add that?
Check for global variables in program. You will find one with exit code. Just Add It.
Actually one line in program was exceeding vector size that was creating problem.I don't how your method can solve that?
#define addToExiTCode (1<<30)+5
Python Equivalent:- globals()["exitCode"] += 2**30 + 5
But problem was with exceeding vector size? how this can help to that?
#define exit( exit(1<<30+5+
#define return return 1<<30+5+