runtime error

for this question , i am getting runtime error(NZEC) with this solution . but there are many successful submissions in C for this problem which also uses same METHOD as i did like this what is the problem with my solution ?

change it to
int main()

… your code…

return 0;
read more abt this in link: