/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:9:40: error: invalid types 'int[int]' for array subscript
  for(i=1;i<=n;i++) ev[i]=(double)e[i][i];
                                        ^
foo.cc:6:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d",&n,&Q);
  ~~~~~^~~~~~~~~~~~~~~
foo.cc:7:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  for(i=1;i<=n;i++) scanf("%d",&e[i]);
                    ~~~~~^~~~~~~~~~~~
foo.cc:8:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  for(i=1;i<=n;i++) scanf("%d",&v[i]);
                    ~~~~~^~~~~~~~~~~~
foo.cc:11:8: warning: ignoring return value of 'int scanf(const char*, ...)', 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:41
评测时间
2021-09-11 14:10:41
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes