/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:23: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
     scanf("%d%d",&m,&n);
                       ^
/in/foo.cc:8:23: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:10:71: error: 'c' was not declared in this scope
     for(i=1;i<=n;i++)for(j=m;j>=w[i];j--)f[j]=max(f[j],f[j-w[i]]+w[i]*c[i]);
                                                                       ^

信息

递交者
类型
递交
题目
P1317 开心的金明
语言
C++
递交时间
2024-07-12 19:21:29
评测时间
2024-07-12 19:21:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes