foo.c: In function 'main':
foo.c:6:17: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
6 | scanf("%d",n);
| ~^ ~
| | |
| | int
| int *
foo.c:13:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '==' token
13 | int num[0]==1;
| ^~
foo.c:13:19: error: expected expression before '==' token
foo.c:14:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '==' token
14 | int num[1]==1;
| ^~
foo.c:14:19: error: expected expression before '==' token
[Hydro](https://hydro.ac)提供评测服务