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_29965711_27975.cpp:7:11: error: expected unqualified-id before numeric constant
 const int 2000, E=V*2, maxint=0x3F3F3F3F;
           ^
0_0_29965711_27975.cpp:15:41: error: 'operator new' takes type 'size_t' ('long long unsigned int') as first parameter [-fpermissive]
     void* operator new(unsigned, void* p){return p;}
                                         ^
0_0_29965711_27975.cpp:16:6: error: 'V' was not declared in this scope
 } *e[V], Te[E+E], *Pe;
      ^
0_0_29965711_27975.cpp:16:13: error: 'E' was not declared in this scope
 } *e[V], Te[E+E], *Pe;
             ^
0_0_29965711_27975.cpp:16:15: error: 'E' was not declared in this scope
 } *e[V], Te[E+E], *Pe;
               ^
0_0_29965711_27975.cpp:19:8: error: 'V' was not declared in this scope
 bool v[V];
        ^
0_0_29965711_27975.cpp: In function 'void addedge(int, int, int, int)':
0_0_29965711_27975.cpp:23:5: error: 'e' was not declared in this scope
     e[s] = new(Pe++) etype(t, +c, u, e[s]);
     ^
0_0_29965711_27975.cpp: In function 'int aug(int, int)':
0_0_29965711_27975.cpp:32:5: error: 'v' was not declared in this scope
     v[no] = true;
     ^
0_0_29965711_27975.cpp:34:21: error: 'e' was not declared in this scope
     for (etype *i = e[no]; i; i = i->next)
                     ^
0_0_29965711_27975.cpp: In function 'bool modlabel()':
0_0_29965711_27975.cpp:46:18: error: 'V' was not declared in this scope
     static int d[V]; memset(d, 0x3F, sizeof(d)); d[T] = 0;
                  ^
0_0_29965711_27975.cpp:46:29: error: 'd' was not declared in this scope
     static int d[V]; memset(d, 0x3F, sizeof(d)); d[T] = 0;
                             ^
0_0_29965711_27975.cpp:51:24: error: 'e' was not declared in this scope
         for(etype *i = e[no]; i; i = i->next)
                        ^
0_0_29965711_27975.cpp:57:24: error: 'e' was not declared in this scope
         for(etype *j = e[i]; j; j = j->next)
                        ^
0_0_29965711_27975.cpp:60:19: error: 'maxint' was not declared in this scope
     return d[S] < maxint;
                   ^
0_0_29965711_27975.cpp: At global scope:
0_0_29965711_27975.cpp:63:8: error: 'V' was not declared in this scope
 int ab[V], *pab[V], w[V];
        ^
0_0_29965711_27975.cpp:63:17: error: 'V' was not declared in this scope
 int ab[V], *pab[V], w[V];
                 ^
0_0_29965711_27975.cpp:63:23: error: 'V' was not declared in this scope
 int ab[V], *pab[V], w[V];
                       ^
0_0_29965711_27975.cpp: In function 'int main()':
0_0_29965711_27975.cpp:76:16: error: 'e' was not declared in this scope
         memset(e,0,sizeof(e));
                ^
0_0_29965711_27975.cpp:77:14: error: 'Te' was not declared in this scope
         Pe = Te;
              ^
0_0_29965711_27975.cpp:83:25: error: 'pab' was not declared in this scope
             scanf("%d", pab[abz] = &ab[abz]), abz++;
                         ^
0_0_29965711_27975.cpp:83:37: error: 'ab' was not declared in this scope
             scanf("%d", pab[abz] = &ab[abz]), abz++;
                                     ^
0_0_29965711_27975.cpp:85:26: error: 'w' was not declared in this scope
             scanf("%d", &w[i]);
                          ^
0_0_29965711_27975.cpp:87:15: error: 'pab' was not declared in this scope
         sort(&pab[0], &pab[abz], lt());
               ^
0_0_29965711_27975.cpp:96:44: error: 'ab' was not declared in this scope
         for(int i = 0; i < m; ++i) addedge(ab[i+i], ab[i+i+1], -w[i], 1);
                                            ^
0_0_29965711_27975.cpp:96:65: error: 'w' was not declared in this scope
         for(int i = 0; i < m; ++i) addedge(ab[i+i], ab[i+i+1], -w[i], 1);
                                                                 ^
0_0_29965711_27975.cpp:99:23: error: 'v' was not declared in this scope
             do memset(v, 0, sizeof(v));
                       ^
0_0_29965711_27975.cpp:100:26: error: 'maxint' was not declared in this scope
             while(aug(S, maxint));
                          ^
0_0_29965711_27975.cpp: In function 'int main()':
0_0_29965711_27975.cpp:105:5: error: redefinition of 'int main()'
 int main() {
     ^
0_0_29965711_27975.cpp:70:5: note: 'int main()' previously defined here
 int main()
     ^
0_0_29965711_27975.cpp:110:20: error: 'k' was not declared in this scope
   scanf("%d%d",&n,&k);
                    ^
0_0_29965711_27975.cpp:111:36: error: 'a' was not declared in this scope
   for(int i=1;i<=n;i++)scanf("%d",&a[i]);
                                    ^
0_0_29965711_27975.cpp:112:13: error: 'init' was not declared in this scope
   init(n*2+3);
             ^
0_0_29965711_27975.cpp:113:23: error: 'add_edge' was not declared in this scope
   add_edge(0,n*2+1,k,0);
                       ^
0_0_29965711_27975.cpp:115:22: error: 'a' was not declared in this scope
    add_edge(i,i+n,1,-a[i]);
                      ^
0_0_29965711_27975.cpp:128:30: error: 'minimumCostFlow' was not declared in this scope
   minimumCostFlow(0,n*2+2,ans);
                              ^


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-07-05 14:32:52, Gzip enabled