/ TYWZ /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:16:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=1;i<=n;++i)
              ~^~~
/in/foo.cc:18:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=1;i<=n;++i){
              ~^~~
/in/foo.cc:19:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int q=0;q<=cost[i]-1;++q){
               ~^~~~~~~~~~~
/in/foo.cc:22:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int q=cost[i];q<=money;++q){
                     ~^~~~~~~
/in/foo.cc:30:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<=n;++i)
              ~^~~
/in/foo.cc:32:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=1;i<=n;++i){
              ~^~~
/in/foo.cc:33:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int q=0;q<=worth[i]-1;++q){
               ~^~~~~~~~~~~~
/in/foo.cc:36:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int q=worth[i];q<=ans;++q){
                      ~^~~~~
/in/foo.cc:44:3: error: expected primary-expression before '/' token
  */
   ^

信息

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