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_30209836_30902.cpp:18:10: error: 'maxm' was not declared in this scope
 int mark[maxm],d[maxm];
          ^
0_0_30209836_30902.cpp:18:18: error: 'maxm' was not declared in this scope
 int mark[maxm],d[maxm];
                  ^
0_0_30209836_30902.cpp:19:10: error: 'maxm' was not declared in this scope
 int head[maxm],to[maxm*maxm<<1],nt[maxm*maxm<<1],w[maxm*maxm<<1];
          ^
0_0_30209836_30902.cpp:19:19: error: 'maxm' was not declared in this scope
 int head[maxm],to[maxm*maxm<<1],nt[maxm*maxm<<1],w[maxm*maxm<<1];
                   ^
0_0_30209836_30902.cpp:19:24: error: 'maxm' was not declared in this scope
 int head[maxm],to[maxm*maxm<<1],nt[maxm*maxm<<1],w[maxm*maxm<<1];
                        ^
0_0_30209836_30902.cpp:19:36: error: 'maxm' was not declared in this scope
 int head[maxm],to[maxm*maxm<<1],nt[maxm*maxm<<1],w[maxm*maxm<<1];
                                    ^
0_0_30209836_30902.cpp:19:41: error: 'maxm' was not declared in this scope
 int head[maxm],to[maxm*maxm<<1],nt[maxm*maxm<<1],w[maxm*maxm<<1];
                                         ^
0_0_30209836_30902.cpp:19:52: error: 'maxm' was not declared in this scope
 int head[maxm],to[maxm*maxm<<1],nt[maxm*maxm<<1],w[maxm*maxm<<1];
                                                    ^
0_0_30209836_30902.cpp:19:57: error: 'maxm' was not declared in this scope
 int head[maxm],to[maxm*maxm<<1],nt[maxm*maxm<<1],w[maxm*maxm<<1];
                                                         ^
0_0_30209836_30902.cpp:20:8: error: 'maxm' was not declared in this scope
 int dp[maxm*maxm];
        ^
0_0_30209836_30902.cpp:20:13: error: 'maxm' was not declared in this scope
 int dp[maxm*maxm];
             ^
0_0_30209836_30902.cpp:21:7: error: 'maxm' was not declared in this scope
 int a[maxm];
       ^
0_0_30209836_30902.cpp: In function 'void init()':
0_0_30209836_30902.cpp:25:12: error: 'head' was not declared in this scope
     memset(head,-1,sizeof head);
            ^
0_0_30209836_30902.cpp:26:12: error: 'd' was not declared in this scope
     memset(d,inf,sizeof d);
            ^
0_0_30209836_30902.cpp:27:12: error: 'mark' was not declared in this scope
     memset(mark,0,sizeof mark);
            ^
0_0_30209836_30902.cpp:28:12: error: 'dp' was not declared in this scope
     memset(dp,inf,sizeof dp);
            ^
0_0_30209836_30902.cpp: In function 'void add(int, int, int)':
0_0_30209836_30902.cpp:31:11: error: 'nt' was not declared in this scope
     cnt++;nt[cnt]=head[x];head[x]=cnt;to[cnt]=y;w[cnt]=z;
           ^
0_0_30209836_30902.cpp:31:19: error: 'head' was not declared in this scope
     cnt++;nt[cnt]=head[x];head[x]=cnt;to[cnt]=y;w[cnt]=z;
                   ^
0_0_30209836_30902.cpp:31:39: error: 'to' was not declared in this scope
     cnt++;nt[cnt]=head[x];head[x]=cnt;to[cnt]=y;w[cnt]=z;
                                       ^
0_0_30209836_30902.cpp:31:49: error: 'w' was not declared in this scope
     cnt++;nt[cnt]=head[x];head[x]=cnt;to[cnt]=y;w[cnt]=z;
                                                 ^
0_0_30209836_30902.cpp: In function 'void spfa(int, int)':
0_0_30209836_30902.cpp:36:5: error: 'd' was not declared in this scope
     d[st]=0;
     ^
0_0_30209836_30902.cpp:37:5: error: 'mark' was not declared in this scope
     mark[st]=1;
     ^
0_0_30209836_30902.cpp:42:19: error: 'head' was not declared in this scope
         for(int i=head[x];i!=-1;i=nt[i]){
                   ^
0_0_30209836_30902.cpp:42:35: error: 'nt' was not declared in this scope
         for(int i=head[x];i!=-1;i=nt[i]){
                                   ^
0_0_30209836_30902.cpp:43:19: error: 'to' was not declared in this scope
             int v=to[i];
                   ^
0_0_30209836_30902.cpp:44:26: error: 'w' was not declared in this scope
             if(d[v]>d[x]+w[i]){
                          ^
0_0_30209836_30902.cpp: In function 'int main()':
0_0_30209836_30902.cpp:70:18: error: 'a' was not declared in this scope
             cin>>a[i];
                  ^
0_0_30209836_30902.cpp:74:9: error: 'dp' was not declared in this scope
         dp[0]=0;
         ^
0_0_30209836_30902.cpp:76:30: error: 'a' was not declared in this scope
             for(int j=sum;j>=a[i];j--){
                              ^
0_0_30209836_30902.cpp:77:44: error: 'd' was not declared in this scope
                 dp[j]=min(dp[j],dp[j-a[i]]+d[i]);
                                            ^


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-11-30 06:32:20, Gzip enabled