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_19815294_100.cpp:14:2: error: stray '#' in program
     //freopen("cin.txt","r",stdin);
  ^
0_0_19815294_100.cpp:14:9: error: stray '#' in program
     //freopen("cin.txt","r",stdin);
         ^
0_0_19815294_100.cpp:15:2: error: stray '#' in program
     scanf("%d",&t);
  ^
0_0_19815294_100.cpp:15:9: error: stray '#' in program
     scanf("%d",&t);
         ^
0_0_19815294_100.cpp:16:2: error: stray '#' in program
     while(t--)
  ^
0_0_19815294_100.cpp:16:9: error: stray '#' in program
     while(t--)
         ^
0_0_19815294_100.cpp:17:2: error: stray '#' in program
     {
  ^
0_0_19815294_100.cpp:17:9: error: stray '#' in program
     {
         ^
0_0_19815294_100.cpp:18:2: error: stray '#' in program
         scanf("%d%d",&e,&f);
  ^
0_0_19815294_100.cpp:18:9: error: stray '#' in program
         scanf("%d%d",&e,&f);
         ^
0_0_19815294_100.cpp:18:16: error: stray '#' in program
         scanf("%d%d",&e,&f);
                ^
0_0_19815294_100.cpp:18:23: error: stray '#' in program
         scanf("%d%d",&e,&f);
                       ^
0_0_19815294_100.cpp:19:2: error: stray '#' in program
         scanf("%d",&n);
  ^
0_0_19815294_100.cpp:19:9: error: stray '#' in program
         scanf("%d",&n);
         ^
0_0_19815294_100.cpp:19:16: error: stray '#' in program
         scanf("%d",&n);
                ^
0_0_19815294_100.cpp:19:23: error: stray '#' in program
         scanf("%d",&n);
                       ^
0_0_19815294_100.cpp:20:2: error: stray '#' in program
         for(int i=1;i<=n;i++) scanf("%d%d",&p[i],&w[i]);
  ^
0_0_19815294_100.cpp:20:9: error: stray '#' in program
         for(int i=1;i<=n;i++) scanf("%d%d",&p[i],&w[i]);
         ^
0_0_19815294_100.cpp:20:16: error: stray '#' in program
         for(int i=1;i<=n;i++) scanf("%d%d",&p[i],&w[i]);
                ^
0_0_19815294_100.cpp:20:23: error: stray '#' in program
         for(int i=1;i<=n;i++) scanf("%d%d",&p[i],&w[i]);
                       ^
0_0_19815294_100.cpp:21:2: error: stray '#' in program
         memset(dp,0x3f3f3f3f,sizeof(dp));
  ^
0_0_19815294_100.cpp:21:9: error: stray '#' in program
         memset(dp,0x3f3f3f3f,sizeof(dp));
         ^
0_0_19815294_100.cpp:21:16: error: stray '#' in program
         memset(dp,0x3f3f3f3f,sizeof(dp));
                ^
0_0_19815294_100.cpp:21:23: error: stray '#' in program
         memset(dp,0x3f3f3f3f,sizeof(dp));
                       ^
0_0_19815294_100.cpp:22:2: error: stray '#' in program
         dp[0]=0;
  ^
0_0_19815294_100.cpp:22:9: error: stray '#' in program
         dp[0]=0;
         ^
0_0_19815294_100.cpp:22:16: error: stray '#' in program
         dp[0]=0;
                ^
0_0_19815294_100.cpp:22:23: error: stray '#' in program
         dp[0]=0;
                       ^
0_0_19815294_100.cpp:23:2: error: stray '#' in program
         for(int i=1;i<=n;i++)
  ^
0_0_19815294_100.cpp:23:9: error: stray '#' in program
         for(int i=1;i<=n;i++)
         ^
0_0_19815294_100.cpp:23:16: error: stray '#' in program
         for(int i=1;i<=n;i++)
                ^
0_0_19815294_100.cpp:23:23: error: stray '#' in program
         for(int i=1;i<=n;i++)
                       ^
0_0_19815294_100.cpp:24:2: error: stray '#' in program
             for(int j=w[i];j<=f-e;j++)
  ^
0_0_19815294_100.cpp:24:9: error: stray '#' in program
             for(int j=w[i];j<=f-e;j++)
         ^
0_0_19815294_100.cpp:24:16: error: stray '#' in program
             for(int j=w[i];j<=f-e;j++)
                ^
0_0_19815294_100.cpp:24:23: error: stray '#' in program
             for(int j=w[i];j<=f-e;j++)
                       ^
0_0_19815294_100.cpp:24:30: error: stray '#' in program
             for(int j=w[i];j<=f-e;j++)
                              ^
0_0_19815294_100.cpp:24:37: error: stray '#' in program
             for(int j=w[i];j<=f-e;j++)
                                     ^
0_0_19815294_100.cpp:25:2: error: stray '#' in program
                 dp[j]=min(dp[j],dp[j-w[i]]+p[i]);
  ^
0_0_19815294_100.cpp:25:9: error: stray '#' in program
                 dp[j]=min(dp[j],dp[j-w[i]]+p[i]);
         ^
0_0_19815294_100.cpp:25:16: error: stray '#' in program
                 dp[j]=min(dp[j],dp[j-w[i]]+p[i]);
                ^
0_0_19815294_100.cpp:25:23: error: stray '#' in program
                 dp[j]=min(dp[j],dp[j-w[i]]+p[i]);
                       ^
0_0_19815294_100.cpp:25:30: error: stray '#' in program
                 dp[j]=min(dp[j],dp[j-w[i]]+p[i]);
                              ^
0_0_19815294_100.cpp:25:37: error: stray '#' in program
                 dp[j]=min(dp[j],dp[j-w[i]]+p[i]);
                                     ^
0_0_19815294_100.cpp:25:44: error: stray '#' in program
                 dp[j]=min(dp[j],dp[j-w[i]]+p[i]);
                                            ^
0_0_19815294_100.cpp:25:51: error: stray '#' in program
                 dp[j]=min(dp[j],dp[j-w[i]]+p[i]);
                                                   ^
0_0_19815294_100.cpp:26:2: error: stray '#' in program
         if(dp[f-e]<0x3f3f3f3f)
  ^
0_0_19815294_100.cpp:26:9: error: stray '#' in program
         if(dp[f-e]<0x3f3f3f3f)
         ^
0_0_19815294_100.cpp:26:16: error: stray '#' in program
         if(dp[f-e]<0x3f3f3f3f)
                ^
0_0_19815294_100.cpp:26:23: error: stray '#' in program
         if(dp[f-e]<0x3f3f3f3f)
                       ^
0_0_19815294_100.cpp:27:2: error: stray '#' in program
          printf("The minimum amount of money in the piggy-bank is %d.\n",dp[f-e]);
  ^
0_0_19815294_100.cpp:27:9: error: stray '#' in program
          printf("The minimum amount of money in the piggy-bank is %d.\n",dp[f-e]);
         ^
0_0_19815294_100.cpp:27:16: error: stray '#' in program
          printf("The minimum amount of money in the piggy-bank is %d.\n",dp[f-e]);
                ^
0_0_19815294_100.cpp:27:23: error: stray '#' in program
          printf("The minimum amount of money in the piggy-bank is %d.\n",dp[f-e]);
                       ^
0_0_19815294_100.cpp:27:30: error: stray '#' in program
          printf("The minimum amount of money in the piggy-bank is %d.\n",dp[f-e]);
                              ^
0_0_19815294_100.cpp:28:2: error: stray '#' in program
         else printf("This is impossible.\n");
  ^
0_0_19815294_100.cpp:28:9: error: stray '#' in program
         else printf("This is impossible.\n");
         ^
0_0_19815294_100.cpp:28:16: error: stray '#' in program
         else printf("This is impossible.\n");
                ^
0_0_19815294_100.cpp:28:23: error: stray '#' in program
         else printf("This is impossible.\n");
                       ^
0_0_19815294_100.cpp:29:2: error: stray '#' in program
     }
  ^
0_0_19815294_100.cpp:29:9: error: stray '#' in program
     }
         ^
0_0_19815294_100.cpp:30:2: error: stray '#' in program
     return 0;
  ^
0_0_19815294_100.cpp:30:9: error: stray '#' in program
     return 0;
         ^
0_0_19815294_100.cpp: In function 'int main()':
0_0_19815294_100.cpp:14:3: error: lvalue required as unary '&' operand
     //freopen("cin.txt","r",stdin);
   ^
0_0_19815294_100.cpp:14:10: error: lvalue required as unary '&' operand
     //freopen("cin.txt","r",stdin);
          ^
0_0_19815294_100.cpp:15:3: error: lvalue required as unary '&' operand
     scanf("%d",&t);
   ^
0_0_19815294_100.cpp:15:10: error: lvalue required as unary '&' operand
     scanf("%d",&t);
          ^
0_0_19815294_100.cpp:16:3: error: lvalue required as unary '&' operand
     while(t--)
   ^
0_0_19815294_100.cpp:16:10: error: lvalue required as unary '&' operand
     while(t--)
          ^
0_0_19815294_100.cpp:17:3: error: lvalue required as unary '&' operand
     {
   ^
0_0_19815294_100.cpp:17:10: error: lvalue required as unary '&' operand
     {
          ^
0_0_19815294_100.cpp:18:3: error: lvalue required as unary '&' operand
         scanf("%d%d",&e,&f);
   ^
0_0_19815294_100.cpp:18:10: error: lvalue required as unary '&' operand
   


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-05-05 10:40:50, Gzip enabled