Says Run Time error when submitted over here

https://ide.codingblocks.com/s/58217
I can’t submit it but the code works fine on CB IDE

Hey Anikash, mention the problem’s name also.

Hi Anikash, just change the line number 32 to int n,a[1000000]; instead of int n,a[n];