Why i am getting wrong output
Divisible subarrays
@vaishnavtannu
hello vaishnavi,
a) u missed to initialise cum[0]=1
b) and change datatypes to long long
c) if u r facing any logical issue then pls check this https://www.youtube.com/watch?v=p5Cm_r4T1Rw
@vaishnavtannu
updated code - https://ide.codingblocks.com/s/187849
a) initialise cum[0] with 1
b) changed datatype of ans and temp to long long