/ TYWZ /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:22:10: error: 'mi' was not declared in this scope
    while(mi[i] > temp){
          ^~
/in/foo.cc:25:5: error: 'ti' was not declared in this scope
     ti[k] = ti[i] * temp;
     ^~
/in/foo.cc:26:5: error: 'ci' was not declared in this scope
     ci[k] = ci[i] * temp;
     ^~
/in/foo.cc:29:4: error: 'ti' was not declared in this scope
    ti[i] *= mi[i];
    ^~
/in/foo.cc:29:13: error: 'mi' was not declared in this scope
    ti[i] *= mi[i];
             ^~
/in/foo.cc:30:4: error: 'ci' was not declared in this scope
    ci[i] *= mi[i];
    ^~
/in/foo.cc:35:14: error: invalid conversion from 'int*' to 'int' [-fpermissive]
    for(int j=t;j>=ti[i];j--)
              ^
/in/foo.cc:35:19: error: 'ti' was not declared in this scope
    for(int j=t;j>=ti[i];j--)
                   ^~
/in/foo.cc:37:34: error: 'ci' was not declared in this scope
      f0[j]=max(f0[j],f0[j-ti[i]]+ci[i]);
                                  ^~

信息

递交者
类型
递交
题目
Basic Knapsack II
语言
C++
递交时间
2019-01-31 23:17:20
评测时间
2019-01-31 23:17:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes