/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:19: error: 'm' was not declared in this scope
     scanf("%d%d",&m,&n);
                   ^
/in/foo.cc:8:22: error: 'n' was not declared in this scope
     scanf("%d%d",&m,&n);
                      ^
/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:20:50
评测时间
2024-07-12 19:20:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes