prog.c:2:1: error: return type defaults to ‘int’ [-Werror=implicit-int]
main()
^~~~
prog.c: In function ‘main’:
prog.c:4:1: error: implicit declaration of function ‘printf’ [-Werror=implicit-function-declaration]
printf("\n%s", reverse("computer"));
^~~~~~
prog.c:4:1: error: incompatible implicit declaration of built-in function ‘printf’ [-Werror]
prog.c:4:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
cc1: all warnings being treated as errors