Please find the mistake in my logic(divisible subarray problem)

hello @amangupta

a) use long long

b) initialise mod[0]=1

I am still getting the wrong answer

a) u r not reading array.

b) declare both array as global array .

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.