prog.c:4:6: warning: return type of ‘main’ is not ‘int’ [-Wmain]
void main()
^~~~
prog.c: In function ‘main’:
prog.c:5:8: warning: character constant too long for its type
{scanf('%d,%d,%d,%d',&c,&d,&k,&m);
^~~~~~~~~~~~~
prog.c:5:8: warning: passing argument 1 of ‘scanf’ makes pointer from integer without a cast [-Wint-conversion]
In file included from /usr/include/features.h:364:0,
from /usr/include/stdio.h:27,
from prog.c:1:
/usr/include/stdio.h:448:12: note: expected ‘const char * restrict’ but argument is of type ‘int’
extern int __REDIRECT (scanf, (const char *__restrict __format, ...),
^
prog.c:6:10: error: fixed-point types not supported for this target
a=(c+d)*(2k-m);
^~
prog.c:7:2: warning: statement with no effect [-Wunused-value]
p==a%5;
~^~~~~
prog.c:8:4: error: ‘f’ undeclared (first use in this function)
if(f=0)
^
prog.c:8:4: note: each undeclared identifier is reported only once for each function it appears in
prog.c:9:3: warning: statement with no effect [-Wunused-value]
{a==a/5;
~^~~~~
prog.c:10:8: warning: multi-character character constant [-Wmultichar]
printf('%d',a);}
^~~~
prog.c:10:8: warning: passing argument 1 of ‘printf’ makes pointer from integer without a cast [-Wint-conversion]
In file included from prog.c:1:0:
/usr/include/stdio.h:364:12: note: expected ‘const char * restrict’ but argument is of type ‘int’
extern int printf (const char *__restrict __format, ...);
^~~~~~
prog.c:12:9: warning: character constant too long for its type
{printf('chetnoe');}
^~~~~~~~~
prog.c:12:9: warning: passing argument 1 of ‘printf’ makes pointer from integer without a cast [-Wint-conversion]
In file included from prog.c:1:0:
/usr/include/stdio.h:364:12: note: expected ‘const char * restrict’ but argument is of type ‘int’
extern int printf (const char *__restrict __format, ...);
^~~~~~
prog.c:14:9: warning: character constant too long for its type
{printf('nechetnoe');}
^~~~~~~~~~~
prog.c:14:9: warning: passing argument 1 of ‘printf’ makes pointer from integer without a cast [-Wint-conversion]
In file included from prog.c:1:0:
/usr/include/stdio.h:364:12: note: expected ‘const char * restrict’ but argument is of type ‘int’
extern int printf (const char *__restrict __format, ...);
^~~~~~