Saya menulis program ini:
#include<stdio.h>
int main()
{
printf(“Hello World\n”);
return 0;
}
Saya menyimpannya sebagai first.c
dan mencoba mengkompilasi tetapi menerima masalah ini saya telah menginstal kompiler gcc juga.
$ gcc first.c -o first1
first.c: In function ‘main’:
first.c:4:1: error: stray ‘\342’ in program
first.c:4:1: error: stray ‘\200’ in program
first.c:4:1: error: stray ‘\234’ in program
first.c:4:11: error: ‘Hello’ undeclared (first use in this function)
first.c:4:11: note: each undeclared identifier is reported only once for each function
it appears in
first.c:4:17: error: expected ‘)’ before ‘World’
first.c:4:17: error: stray ‘\’ in program
first.c:4:17: error: stray ‘\342’ in program
first.c:4:17: error: stray ‘\200’ in program
first.c:4:17: error: stray ‘\235’ in program
Bagaimana saya bisa memperbaiki masalah ini?