1. at least you have to save the file with an appropriate file-ending (.c in your case), to make it compilable.
2. I suggest using a wizard created project to do the first steps ("File -> New -> Project -> Console application")
If you need to debug your program, you have to use projects anyway, because debugging standalone-files is not (yet ?) supported.