I am not getting the array


this my implementation please rectify it and explain me where i am wrong

What do you want me to do , like you are not even taking input, you have only written sieve. Do you want me to share the correct code?

In the code i have made a array of all whole numbers ini which i have tried to make the value of prime index to 1 and else zero and in the main i want to print prime till 50

There is some Segmentation type of error may be due to size of array or wrong iteration please rectify it and explain me where i am wrong

Change line 19 to for (int i = 3; i*i <= N; i += 2)
and change line 32 to #ifndef ONLINE_JUDGE