foo.c: In function 'main':
foo.c:6:15: warning: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
6 | scanf(a,b);
| ^
| |
| int
In file included from foo.c:1:
/nix/store/3w4yrspgcx1z9wi18rv0hbap4jjlhx4c-glibc-2.37-8-dev/include/stdio.h:421:42: note: expected 'const char * restrict' but argument is of type 'int'
421 | extern int scanf (const char *__restrict __format, ...) __wur;
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
foo.c:7:12: error: expected '(' before 'a'
7 | if a%4==0,b==2;
| ^
| (
foo.c:7:12: warning: statement with no effect [-Wunused-value]
foo.c:8:24: error: expected ';' before 'if'
8 | printf("29/n")
| ^
| ;
9 | if b==1||b==3||b==5||b=7||b==8||b==10||b==12;
| ~~
foo.c:10:26: error: expected ';' before 'if'
10 | printf("31/n")
| ^
| ;
11 | if b==4||b==6||b==9||b==11;
| ~~
foo.c:12:30: error: expected ';' at end of input
12 | printf("30/n")
| ^
| ;
13 |
foo.c:12:16: error: expected declaration or statement at end of input
12 | printf("30/n")
| ^~~~~~
[Hydro](https://hydro.ac)提供评测服务