foo.c: In function 'shu':
foo.c:7:10: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
7 | if(i>=n&&n!=1||n==2)
| ~~~~^~~~~~
foo.c: In function 'main':
foo.c:27:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long int *' [-Wformat=]
27 | scanf("%d",&n);
| ~^ ~~
| | |
| | long int *
| int *
| %ld
foo.c:27:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
27 | scanf("%d",&n);
| ^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务