11) removing bracket
of stdio.h
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
12) replacing int
with void
hello.c:5:16:
warning: ‘return’ with a value, in function returning void
return(0);
^
hello.c:2:7: note:
declared here
void main()
13) removing bracket
of printf
hello.c: In function
‘main’:
hello.c:4:8: error:
expected ‘;’ before string constant
printf" hello
world";
14) removing zero(0)
from return
hello.c:5:16: error:
expected expression before ‘)’ token
return();
15) removing (.h)
from stdio
hello.c:1:9: fatal
error: stdio: No such file or directory
#include<stdio>
^~~~~~~
compilation
terminated.
16) missing single
bracket of main
hello.c:3:1:
error: expected declaration specifiers or ‘...’ before ‘{’
token
17) used colon
instead of semicolon
hello.c:5:18: error: expected ‘;’ before ‘:’ token
return(0):
18) remove printf
command
hello.c: In
function ‘main’:
hello.c:4:4:
error: unknown type name ‘hello’
hello world/n ;
^~~~~
hello.c:4:15:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘/’ token
hello world/n ;
19) extra characrer
after commas of printf
hello.c:4:26:
error: expected ‘)’ before ‘hi’
print( "
hello world/n "hi ) ;
20) backspace error
in main() function
hello.c:2:1:
warning: return type defaults to ‘int’ [-Wimplicit-int]
intmain()
^~~~~~~
/usr/lib/gcc/x86_64-redhat-linux/7/../../../../lib64/crt1.o:
In function `_start':
(.text+0x20):
undefined reference to `main'
It looks like you're new here. If you want to get involved, click one of these buttons!