/ Vijos /

记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1103 校门外的树
语言
C
递交时间
2023-11-06 01:05:28
评测时间
2023-11-06 01:05:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes