runtime error

for this question http://www.codechef.com/problems/HS08TEST , i am getting runtime error(NZEC) with this solution http://www.codechef.com/submit/complete/428862-2980--51e1928acc2cf . but there are many successful submissions in C for this problem which also uses same METHOD as i did like this http://www.codechef.com/viewsolution/2367141. what is the problem with my solution ?

change it to
int main()
{

… your code…

return 0;
}
read more abt this in link:http://www.codechef.com/wiki/faq#Why_do_I_get_an_NZEC