Please help me in removing the error on my code

my code

@be10046.19
Change terminating condition in line 10 to i<=sqrt(size)+1

now also i am getting wrong answer

@be10046.19 hey checkout this code ,have corrected it:

@rishabh mahajan how did you derives such a formula for calculating the ans

in somes test cases wrong answer is coming

@be10046.19 hey ,The product of all the divisors of a number N is N^x where x is the number of divisors of N. The number of divisors is given by product of prime powers+1 for N. for example if N = 12 than its number of divisors are (2+1)*(1+1) = 6. you are already given the prime powers of N hence its number of divisors can be calculated.I have corrected code,please check it: