17. Bug: print
(“hello panda\n”)
hello.c:5:2:
warning: implicit declaration of function ‘print’; did you mean
‘printf’? [-Wimplicit-function-declaration]
print("hello
panda /n");
^~~~~
printf
/tmp/ccjvdtLC.o: In
function `main':
hello.c:(.text+0xf):
undefined reference to `print'
collect2: error: ld
returned 1 exit status
18: Bug: return 0
error: expected ‘;’
before ‘}’ token
}
19. Bug: <stio.h>
hello.c:2:9: fatal
error: stio.h: No such file or directory
#include<stio.h>
^~~~~~~~
compilation
terminated.
20. Bug:
printf(“hello panda/n”};
error: expected ‘)’
before ‘}’ token
printf("hello
panda /n"};
^
hello.c:5:25: error:
expected ‘;’ before ‘}’ token
hello.c: At top
level:
hello.c:6:2: error:
expected identifier or ‘(’ before ‘return’
return 0;
^~~~~~
hello.c:8:1: error:
expected identifier or ‘(’ before ‘}’ token
}
^
21. Bug: retun 0;
error: ‘retun’
undeclared (first use in this function); did you mean ‘rewind’?
retun 0;
^~~~~
rewind
hello.c:6:2: note:
each undeclared identifier is reported only once for each function it
appears in
hello.c:6:8: error:
expected ‘;’ before numeric constant
retun 0;
It looks like you're new here. If you want to get involved, click one of these buttons!