I keep getting an error that says "no new endline at the end of file"

but i pressed enter and it still won't work.

i am compiling with gcc

are there anything else i should look at?

I'm also compiling with other files together. and All the files have a new line at the end so why the error?