No output displaying in prime sieve question

Change line 22 to int p[n+1]={0};
If last index is n, then array size must be n+1

but sir ans is still wrong.for input=100 output =2 3 5 7

but sir ans is still wrong.for input=100 output =2 3 5 7. can you please identify my mistake.

@Prabhleen_sheenu Change line 10 to for(long long j=ii;j<=n;j+=2i)

Got it .Thank you ! !