Compile Error
/in/foo.cc: In function 'int main()':
/in/foo.cc:10:2: error: 'cin' was not declared in this scope
  cin>>W>>V>>n;
  ^~~
/in/foo.cc:18:59: error: 'max' was not declared in this scope
      f[i][j][k]=max(f[i][j][k],f[i+1][j-w[i]][k-v[i]]+p[i]);
                                                           ^
/in/foo.cc:21:2: error: 'cout' was not declared in this scope
  cout<<f[1][W][V]<<endl;
  ^~~~
/in/foo.cc:21:20: error: 'endl' was not declared in this scope
  cout<<f[1][W][V]<<endl;
                    ^~~~
  信息
- 递交者
 - 类型
 - 递交
 - 题目
 - P1021 [蓝桥杯省赛 初级组] 最大购物优惠
 - 语言
 - C++
 - 递交时间
 - 2023-10-22 19:20:53
 - 评测时间
 - 2023-10-22 19:20:53
 - 评测机
 
- 分数
 - 0
 - 总耗时
 - 0ms
 - 峰值内存
 - 0 Bytes