My code is running on coding blocks ide but on codechef it gives runtime error. Why ?
Https://ide.codingblocks.com/s/373811
hello @nidhigupta847
in ur code u r accessing index n of array a, so declare ur array a of size n+1.
cb ide allows invalid index access thats why it is working
Changed that but still getting runtime error
pls share the question link and also mention the test case for which it is giving that error