I am getting runtime error on testcase 2 idk why somebody please help! The issue is related to an access violation, even though I have applied checks everywhere.
Issue Solved!
I am getting runtime error on testcase 2 idk why somebody please help! The issue is related to an access violation, even though I have applied checks everywhere.
Issue Solved!
In else block gcd[index] minght be out of bounds
New Submission
Well it still says runtime error
That's because arr is by one number bigger than gcd
okay but how can I fix this problem?
Try replacing arr.size() with gcd.size() in
I don't know I haven't read the task