/ Vijos /

记录详情

Compile Error

foo.c: In function 'main':
foo.c:9:38: error: subscripted value is neither array nor pointer nor vector
  for(i=1;i<=n;i++) ev[i]=(double)e[i][i];
                                      ^
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d",&n,&Q);
  ^~~~~~~~~~~~~~~~~~~~
foo.c:7:20: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  for(i=1;i<=n;i++) scanf("%d",&e[i]);
                    ^~~~~~~~~~~~~~~~~
foo.c:8:20: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  for(i=1;i<=n;i++) scanf("%d",&v[i]);
                    ^~~~~~~~~~~~~~~~~
foo.c:11:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d %d %d",&l,&r,&V);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1678 陶陶的背包
语言
C
递交时间
2021-09-11 14:10:33
评测时间
2021-09-11 14:10:33
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes