Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

Why do I get sigsegv in TSORT when i write my array as arr[10^6],and get AC when i write arr[1000000]?

$
0
0

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?


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>