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
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