Cant understand error

my code-

the problrm-https://leetcode.com/problems/product-of-array-except-self/
please correct it and tell where am i wrong

you have to return the vector of integers containing the ans

Modified Code

this code is not correct
consider the case if one of the element is 0