prog.c:3:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
main()
^~~~
prog.c: In function ‘main’:
prog.c:9:8: warning: implicit declaration of function ‘If’ [-Wimplicit-function-declaration]
If(time_t=8 || time_t=17);
^~
prog.c:9:29: error: lvalue required as left operand of assignment
If(time_t=8 || time_t=17);
^
prog.c:10:15: warning: too many arguments for format [-Wformat-extra-args]
printf("Hello, it's time to eat\n", time_t );
^~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.c:11:8: error: ‘else’ without a previous ‘if’
else
^~~~
prog.c:12:15: warning: too many arguments for format [-Wformat-extra-args]
printf("I do what i want\n", time_t);
^~~~~~~~~~~~~~~~~~~~