It was saved as .wdl. I changed it to .c and now its working!

Thanks Xarthor, but what I don't understand is how come it was working fine earlier with the .wdl extension? The last time I ran this program was abt a month ago and it worked fine. Why did it then stop working by itself? Is there any setting in SED for this, which I might've messed up?