/ Vijos /

记录详情

Compile Error

foo.c: In function 'main':
foo.c:5:5: error: variable-sized object may not be initialized
     int l,m,a,b,i,j,aw=0,c[l+1]={0};
     ^~~
foo.c:5:34: warning: excess elements in array initializer
     int l,m,a,b,i,j,aw=0,c[l+1]={0};
                                  ^
foo.c:5:34: note: (near initialization for 'c')
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d",&l,&m);
  ^~~~~~~~~~~~~~~~~~~~
foo.c:9:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d %d",&a,&b);
   ^~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1103 校门外的树
语言
C
递交时间
2021-10-06 16:56:20
评测时间
2021-10-06 16:56:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes