Divisible -subarrays problem

https://ide.codingblocks.com/s/54865

the code is showing wrong output in one test case.

Hey Yukti, I have just corrected your mistake in subarray() you can refer this your updated code.

hey yukti, In your code initialize your prefixsum array by zero, long long int prefixsum[10000005]={0};
both the testcase will get pass then