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_28254151_31527.cpp:37:11: error: 'MAXN' was not declared in this scope
 int Depth[MAXN];
           ^
0_0_28254151_31527.cpp:38:13: error: 'MAXN' was not declared in this scope
 int Current[MAXN];
             ^
0_0_28254151_31527.cpp: In function 'bool Bfs(int, int)':
0_0_28254151_31527.cpp:49:12: error: 'Depth' was not declared in this scope
     memset(Depth, -1, sizeof(Depth));
            ^
0_0_28254151_31527.cpp: In function 'int Dfs(int, int, int)':
0_0_28254151_31527.cpp:69:19: error: 'Current' was not declared in this scope
     for (int &i = Current[Cur]; ~i; i = edges[i].Next) {
                   ^
0_0_28254151_31527.cpp:70:36: error: 'Depth' was not declared in this scope
         if (edges[i].Weight > 0 && Depth[edges[i].V] == Depth[Cur] + 1) {
                                    ^
0_0_28254151_31527.cpp:80:22: error: 'Depth' was not declared in this scope
     if (!UsableFlow) Depth[Cur] = -2;
                      ^
0_0_28254151_31527.cpp: In function 'int Dinic(int, int)':
0_0_28254151_31527.cpp:87:44: error: 'Current' was not declared in this scope
         for (int i = Start; i <= End; ++i) Current[i] = Head[i];
                                            ^
0_0_28254151_31527.cpp: At global scope:
0_0_28254151_31527.cpp:94:5: error: redefinition of 'int N'
 int N, M, K;
     ^
0_0_28254151_31527.cpp:36:5: note: 'int N' previously declared here
 int N, E;
     ^


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-26 20:04:00, Gzip enabled