ERROR
1) removed ; in
printf
hello.c:6:2: error:
expected ‘;’ before ‘return’
return(0);
2)removed ) before ;
hello.c:5:22: error:
expected ‘)’ before ‘;’ token
printf("hello
world";
^
hello.c:7:1: error:
expected ‘;’ before ‘}’ token
3)remove (“ “)
in printf
hello.c:5:9: note:
each undeclared identifier is reported only once for each function it
appears in
hello.c:5:15: error:
expected ‘)’ before ‘world’
printf(hello
world);
4)
removing ; in from
return0
hello.c:8:1: error:
expected ‘;’ before ‘}’ token
}
5) removing int from
main
hello.c:3:2:
warning: return type defaults to ‘int’ [-Wimplicit-int]
main()
6)removing hash from
library
hello.c:1:8: error:
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘<’ token
include<stdio.h>
7)removing header
file
hello.c:4:2:
warning: incompatible implicit declaration of built-in function
‘printf’
hello.c:4:2: note:
include ‘<stdio.h>’ or provide a declaration of ‘printf’
8)removing
parathesis of main function
hello.c:4:2:
warning: incompatible implicit declaration of built-in function
‘printf’
hello.c:4:2: note:
include ‘<stdio.h>’ or provide a declaration of ‘printf’
9) removing closing
bracket of main finction
hello.c:5:10: error:
expected declaration or statement at end of input
return(0);
10) spelling
mistake of printf
ello.c:4:2: warning:
implicit declaration of function ‘print’; did you mean ‘printf’?
[-Wimplicit-function-declaration]
print(" hello
world" );
^~~~~
printf
/tmp/ccmy4vPk.o: In
function `main':
hello.c:(.text+0xf):
undefined reference to `print'
collect2: error: ld
returned 1 exit status
It looks like you're new here. If you want to get involved, click one of these buttons!