F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_28558046_1040.cpp:17:2: error: stray '#' in program
      memset(f, 0, sizeof(f));
  ^
0_0_28558046_1040.cpp:17:8: error: stray '#' in program
      memset(f, 0, sizeof(f));
        ^
0_0_28558046_1040.cpp:17:14: error: stray '#' in program
      memset(f, 0, sizeof(f));
              ^
0_0_28558046_1040.cpp:17:20: error: stray '#' in program
      memset(f, 0, sizeof(f));
                    ^
0_0_28558046_1040.cpp:18:2: error: stray '#' in program
      int mony, kind; scanf("%d %d", &mony, &kind);
  ^
0_0_28558046_1040.cpp:18:8: error: stray '#' in program
      int mony, kind; scanf("%d %d", &mony, &kind);
        ^
0_0_28558046_1040.cpp:18:14: error: stray '#' in program
      int mony, kind; scanf("%d %d", &mony, &kind);
              ^
0_0_28558046_1040.cpp:18:20: error: stray '#' in program
      int mony, kind; scanf("%d %d", &mony, &kind);
                    ^
0_0_28558046_1040.cpp:22:2: error: stray '#' in program
          int C, W, n, i;scanf("%d %d %d",&C, &W, &n);
  ^
0_0_28558046_1040.cpp:22:8: error: stray '#' in program
          int C, W, n, i;scanf("%d %d %d",&C, &W, &n);
        ^
0_0_28558046_1040.cpp:22:14: error: stray '#' in program
          int C, W, n, i;scanf("%d %d %d",&C, &W, &n);
              ^
0_0_28558046_1040.cpp:22:20: error: stray '#' in program
          int C, W, n, i;scanf("%d %d %d",&C, &W, &n);
                    ^
0_0_28558046_1040.cpp:23:2: error: stray '#' in program
          for(i = 0; i < n; i++){//分解为01背包
  ^
0_0_28558046_1040.cpp:23:8: error: stray '#' in program
          for(i = 0; i < n; i++){//分解为01背包
        ^
0_0_28558046_1040.cpp:23:14: error: stray '#' in program
          for(i = 0; i < n; i++){//分解为01背包
              ^
0_0_28558046_1040.cpp:23:20: error: stray '#' in program
          for(i = 0; i < n; i++){//分解为01背包
                    ^
0_0_28558046_1040.cpp:24:2: error: stray '#' in program
       c[cnt] = C;
  ^
0_0_28558046_1040.cpp:24:8: error: stray '#' in program
       c[cnt] = C;
        ^
0_0_28558046_1040.cpp:24:14: error: stray '#' in program
       c[cnt] = C;
              ^
0_0_28558046_1040.cpp:24:20: error: stray '#' in program
       c[cnt] = C;
                    ^
0_0_28558046_1040.cpp:25:2: error: stray '#' in program
       w[cnt++] = W;
  ^
0_0_28558046_1040.cpp:25:8: error: stray '#' in program
       w[cnt++] = W;
        ^
0_0_28558046_1040.cpp:25:14: error: stray '#' in program
       w[cnt++] = W;
              ^
0_0_28558046_1040.cpp:25:20: error: stray '#' in program
       w[cnt++] = W;
                    ^
0_0_28558046_1040.cpp:26:2: error: stray '#' in program
          }
  ^
0_0_28558046_1040.cpp:26:8: error: stray '#' in program
          }
        ^
0_0_28558046_1040.cpp:26:14: error: stray '#' in program
          }
              ^
0_0_28558046_1040.cpp:26:20: error: stray '#' in program
          }
                    ^
0_0_28558046_1040.cpp:30:2: error: stray '#' in program
      for(int i = 1; i <= kind; i++)
  ^
0_0_28558046_1040.cpp:30:8: error: stray '#' in program
      for(int i = 1; i <= kind; i++)
        ^
0_0_28558046_1040.cpp:30:14: error: stray '#' in program
      for(int i = 1; i <= kind; i++)
              ^
0_0_28558046_1040.cpp:30:20: error: stray '#' in program
      for(int i = 1; i <= kind; i++)
                    ^
0_0_28558046_1040.cpp:31:2: error: stray '#' in program
          for(int j = mony; j >= c[i]; j--)
  ^
0_0_28558046_1040.cpp:31:8: error: stray '#' in program
          for(int j = mony; j >= c[i]; j--)
        ^
0_0_28558046_1040.cpp:31:14: error: stray '#' in program
          for(int j = mony; j >= c[i]; j--)
              ^
0_0_28558046_1040.cpp:31:20: error: stray '#' in program
          for(int j = mony; j >= c[i]; j--)
                    ^
0_0_28558046_1040.cpp:32:2: error: stray '#' in program
          f[j] = max( f[j], f[j - c[i]] + w[i]);
  ^
0_0_28558046_1040.cpp:32:8: error: stray '#' in program
          f[j] = max( f[j], f[j - c[i]] + w[i]);
        ^
0_0_28558046_1040.cpp:32:14: error: stray '#' in program
          f[j] = max( f[j], f[j - c[i]] + w[i]);
              ^
0_0_28558046_1040.cpp:32:20: error: stray '#' in program
          f[j] = max( f[j], f[j - c[i]] + w[i]);
                    ^
0_0_28558046_1040.cpp:32:26: error: stray '#' in program
          f[j] = max( f[j], f[j - c[i]] + w[i]);
                          ^
0_0_28558046_1040.cpp:32:32: error: stray '#' in program
          f[j] = max( f[j], f[j - c[i]] + w[i]);
                                ^
0_0_28558046_1040.cpp:32:38: error: stray '#' in program
          f[j] = max( f[j], f[j - c[i]] + w[i]);
                                      ^
0_0_28558046_1040.cpp:32:44: error: stray '#' in program
          f[j] = max( f[j], f[j - c[i]] + w[i]);
                                            ^
0_0_28558046_1040.cpp:33:2: error: stray '#' in program
      printf("%d\n", f[mony]);
  ^
0_0_28558046_1040.cpp:33:8: error: stray '#' in program
      printf("%d\n", f[mony]);
        ^
0_0_28558046_1040.cpp:33:14: error: stray '#' in program
      printf("%d\n", f[mony]);
              ^
0_0_28558046_1040.cpp:33:20: error: stray '#' in program
      printf("%d\n", f[mony]);
                    ^
0_0_28558046_1040.cpp: In function 'int main()':
0_0_28558046_1040.cpp:17:3: error: lvalue required as unary '&' operand
      memset(f, 0, sizeof(f));
   ^
0_0_28558046_1040.cpp:17:9: error: lvalue required as unary '&' operand
      memset(f, 0, sizeof(f));
         ^
0_0_28558046_1040.cpp:17:15: error: lvalue required as unary '&' operand
      memset(f, 0, sizeof(f));
               ^
0_0_28558046_1040.cpp:17:21: error: lvalue required as unary '&' operand
      memset(f, 0, sizeof(f));
                     ^
0_0_28558046_1040.cpp:18:3: error: lvalue required as unary '&' operand
      int mony, kind; scanf("%d %d", &mony, &kind);
   ^
0_0_28558046_1040.cpp:18:9: error: lvalue required as unary '&' operand
      int mony, kind; scanf("%d %d", &mony, &kind);
         ^
0_0_28558046_1040.cpp:18:15: error: lvalue required as unary '&' operand
      int mony, kind; scanf("%d %d", &mony, &kind);
               ^
0_0_28558046_1040.cpp:18:21: error: lvalue required as unary '&' operand
      int mony, kind; scanf("%d %d", &mony, &kind);
                     ^
0_0_28558046_1040.cpp:22:3: error: lvalue required as unary '&' operand
          int C, W, n, i;scanf("%d %d %d",&C, &W, &n);
   ^
0_0_28558046_1040.cpp:22:9: error: lvalue required as unary '&' operand
          int C, W, n, i;scanf("%d %d %d",&C, &W, &n);
         ^
0_0_28558046_1040.cpp:22:15: error: lvalue required as unary '&' operand
          int C, W, n, i;scanf("%d %d %d",&C, &W, &n);
               ^
0_0_28558046_1040.cpp:22:21: error: lvalue required as unary '&' operand
          int C, W, n, i;scanf("%d %d %d",&C, &W, &n);
                     ^
0_0_28558046_1040.cpp:23:3: error: lvalue required as unary '&' operand
          for(i = 0; i < n; i++){//分解为01背包
   ^
0_0_28558046_1040.cpp:23:9: error: lvalue required as unary '&' operand
          for(i = 0; i < n; i++){//分解为01背包
         ^
0_0_28558046_1040.cpp:23:15: error: lvalue required as unary '&' operand
          for(i = 0; i < n; i++){//分解为01背包
               ^
0_0_28558046_1040.cpp:23:21: error: lvalue required as unary '&' operand
          for(i = 0; i < n; i++){//分解为01背包
                     ^
0_0_28558046_1040.cpp:24:3: error: lvalue required as unary '&' operand
       c[cnt] = C;
   ^
0_0_28558046_1040.cpp:24:9: error: lvalue required as unary '&' operand
       c[cnt] = C;
         ^
0_0_28558046_1040.cpp:24:15: error: lvalue required as unary '&' operand
       c[cnt] = C;
               ^
0_0_28558046_1040.cpp:24:21: error: lvalue required as unary '&' operand
       c[cnt] = C;
                     ^
0_0_28558046_1040.cpp:25:3: error: lvalue required as unary '&' operand
       w[cnt++] = W;
   ^
0


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-12-02 20:43:33, Gzip enabled