Divisible subarray

two test cases fail

hello @aattuull

declare ur sum as long long and then try

still, two test cases fail

image

replace line 23 with the highlighted statement. (this is done to avoid negative index)

but it is also not working and now I am getting 4 out of 5 test cases are wrong

it is working .

1 Like

ok, now it’s working fine. I think there I some technical issue .