foo.c:1:2: error: invalid preprocessing directive #define_CRT_SECURE_NO_WARNINGS
1 | #define_CRT_SECURE_NO_WARNINGS 1
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c: In function 'main':
foo.c:5:9: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
5 | scanf("%d",n)
| ~^ ~
| | |
| | int
| int *
foo.c:5:14: error: expected ';' before 'for'
5 | scanf("%d",n)
| ^
| ;
6 | for(i=1;i<=n;i++)
| ~~~
foo.c:4:16: warning: unused variable 'b' [-Wunused-variable]
4 | {int i,ret=1,n,b;
| ^
foo.c:4:8: warning: unused variable 'ret' [-Wunused-variable]
4 | {int i,ret=1,n,b;
| ^~~
foo.c:4:6: warning: unused variable 'i' [-Wunused-variable]
4 | {int i,ret=1,n,b;
| ^
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务