foo.c: In function 'main':
foo.c:6:26: error: invalid operands to binary & (have 'int *' and 'int')
6 | scanf("%d %d",&L &M);
| ~~ ^
| |
| int *
foo.c:7:15: error: 'l' undeclared (first use in this function)
7 | int a[l+1]={0}
| ^
foo.c:7:15: note: each undeclared identifier is reported only once for each function it appears in
foo.c:8:9: error: expected ',' or ';' before 'for'
8 | for(int i=0;i<=M;i++)
| ^~~
foo.c:8:21: error: 'i' undeclared (first use in this function)
8 | for(int i=0;i<=M;i++)
| ^
foo.c:8:29: error: expected ';' before ')' token
8 | for(int i=0;i<=M;i++)
| ^
| ;
foo.c:8:29: error: expected statement before ')' token
foo.c:11:34: error: invalid operands to binary & (have 'int *' and 'int')
11 | scanf("%d %d",&x &y);
| ~~ ^
| |
| int *
foo.c:15:31: error: expected ';' before '}' token
15 | a[j]=1
| ^
| ;
16 | }
| ~
foo.c:7:13: warning: unused variable 'a' [-Wunused-variable]
7 | int a[l+1]={0}
| ^
[Hydro](https://hydro.ac)提供评测服务