Problem in seive

The link to my code is
I am unable to understand the error I am getting. Also please explain me why my output is not being printed.
Thanks in advance.

printing seive[i] will print only 1 or 0
and if u want to print the prime numbers upto 3200 only prinf i instead of seive[i]

in your seive function
temp shuld be 2i not ii : because we need multiples of i
and increase temp by 2*i not just i
and make your seive arry global

if u want to print primes upto 10^9
u need some more homework,google it!
and before submitting primegenerator submit life,the universe and Everything!
happy coding: