Divisible subarrays question

sir my code of divisible subarray is failing in one test case . it is showing wrong ans. can u plzz tell why?
solution:https://ide.codingblocks.com/s/97892

@khushi91200 hey khushi use memset instead doing lt
like this prefixsum[1000005]={0};
memset(prefixsum,0,sizeof(prefixsum);
use after ll sum =0;
memset is function of class cstring

hello sir @jaiskid
what’ wrong with the simple initialization
so
it required memset function
other than prefixsum[1000005]={0}
:thinking: