The program ran properly on my computer when i used arr[10^6], but when i submitted it to the online judge i got sigsegv, i changed arr[10^6] to arr[1000000] and the program got accepted. I dont understand why this happened? Why does the compiler treat arr[10^6] as sigsegv?
↧