fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3. int a,c,d,k,m,p;
  4. void main()
  5. {scanf('%d,%d,%d,%d',&c,&d,&k,&m);
  6. a=(c+d)*(2k-m);
  7. p==a%5;
  8. if(f=0)
  9. {a==a/5;
  10. printf('%d',a);}
  11. if(f/2=0)
  12. {printf('chetnoe');}
  13. else
  14. {printf('nechetnoe');}
  15. }
  16.  
  17.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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, ...);
            ^~~~~~
stdout
Standard output is empty