/ 程序猿 /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:31: error: 'nC' was not declared in this scope
     for( int i = 1; i< sizeof(nC)/sizeof(int); i++)
                               ^~
/in/foo.cc:14:18: error: 'nVol' was not declared in this scope
             if(j<nVol[i])
                  ^~~~
/in/foo.cc:6:9: warning: unused variable 'nCo' [-Wunused-variable]
     int nCo[6] = {0 , 2 , 5 , 3 , 10 , 4};  //花费
         ^~~
/in/foo.cc:24:13: error: expected '}' at end of input
     return 0;
             ^

信息

递交者
类型
递交
题目
0/1背包
语言
C++
递交时间
2019-03-03 13:07:44
评测时间
2019-03-03 13:07:44
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes