Number Of Divisor

ques=“https://hack.codingblocks.com/contests/c/528/815
ans=“https://ide.codingblocks.com/s/38442
what is wrong in this code only one test case pass ??