Hands-on Penetration Testing Labs 1.0 : file not recoganized

In
Hands-on Penetration Testing Labs 1.0 >> Kioptrix Level 1 - Enumeration and Exploitation
I am getting this error

After I enter this command: gcc 10.c -o 10

This result pop-ups:

10.c: file not recognized: file format not recognized
collect2: error: ld returned 1 exit status
How should i correct it.

That error is for linker error. I am not sure why you are getting this. This usually occurs when the import table in your C program is not able to get the things you imported