Ich habe dieses Programm geschrieben:
#include<stdio.h>
int main()
{
printf(“Hello World\n”);
return 0;
}
Ich habe es als gespeichert first.c
und versucht zu kompilieren, aber als ich dieses Problem erhielt, habe ich auch den gcc-Compiler installiert.
$ 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
Wie kann ich dieses Problem beheben?