prog.c: In function ‘main’:
prog.c:25:12: warning: passing argument 1 of ‘printf’ makes pointer from integer without a cast [-Wint-conversion]
printf(1)
^
In file included from /usr/include/stdio.h:867,
from prog.c:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:105:32: note: expected ‘const char * restrict’ but argument is of type ‘int’
printf (const char *__restrict __fmt, ...)
~~~~~~~~~~~~~~~~~~~~~~~^~~~~
prog.c:25:5: warning: format not a string literal and no format arguments [-Wformat-security]
printf(1)
^~~~~~
prog.c:25:14: error: expected ‘;’ before ‘if’
printf(1)
^
;
prog.c:27:5:
if (c < d){
~~
prog.c:11:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a);
^~~~~~~~~~~~~~
prog.c:13:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&b);
^~~~~~~~~~~~~~