run time error

why this code generate run time error (SIGSEGV) ?

http://www.codechef.com/viewsolution/4626115

TY…

Check this link -

 http://ideone.com/xitjxI 

After checking this link , You got your error .

We can’t use same variable which is define in function .

Happy coding .

//