Getting wrong answer

This is the link https://ide.codingblocks.com/s/190535
Getting wrong answer for test case 1 and run time error for test case 0

@quizzerkumar check the following in your code:
increment your array size upto 9*10^7.
for loop at line 15 of your code should increment j by j+=i,
for loop at 20 shouldstart with i=2 and increment i by i++,

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.