/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:46:2: error: invalid operands of types 'int [100010]' and 'int' to binary 'operator/'
 v/=1000000;
 ~^~~~~~~~~
foo.cc:46:4: error:   in evaluation of 'operator/=(int [100010], int)'
 v/=1000000;
    ^~~~~~~
foo.cc:27: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:28:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  for(int i=1;i<=n;i++) scanf("%d",&v[i]);
                        ~~~~~^~~~~~~~~~~~
foo.cc:31:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&w[i]);
   ~~~~~^~~~~~~~~~~~
foo.cc:44: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-10-13 21:56:52
评测时间
2021-10-13 21:56:52
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes