Passing none of the test cases

I tried running the code on my compiler its showing the correct output but its now working here.

code link: https://ide.codingblocks.com/s/259810

Change line 34 to cin>>a[i]; and then check