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_24790999_11424.cpp:5:12: error: 'maxn' was not declared in this scope
 int vis[2][maxn];
            ^
0_0_24790999_11424.cpp:14:16: error: 'maxn' was not declared in this scope
  vector<int> G[maxn];
                ^
0_0_24790999_11424.cpp:15:8: error: 'maxn' was not declared in this scope
  int a[maxn];
        ^
0_0_24790999_11424.cpp:16:8: error: 'maxn' was not declared in this scope
  int p[maxn];
        ^
0_0_24790999_11424.cpp: In member function 'void EdmondsKarp::init(int)':
0_0_24790999_11424.cpp:20:4: error: 'G' was not declared in this scope
    G[i].clear();
    ^
0_0_24790999_11424.cpp: In member function 'void EdmondsKarp::AddEdge(int, int, int)':
0_0_24790999_11424.cpp:29:3: error: 'G' was not declared in this scope
   G[from].push_back(m - 2);
   ^
0_0_24790999_11424.cpp: In member function 'int EdmondsKarp::Maxflow(int, int)':
0_0_24790999_11424.cpp:36:11: error: 'a' was not declared in this scope
    memset(a, 0, sizeof(a));
           ^
0_0_24790999_11424.cpp:43:23: error: 'G' was not declared in this scope
     for (int i = 0; i<G[x].size(); i++) {
                       ^
0_0_24790999_11424.cpp:46:7: error: 'p' was not declared in this scope
       p[e.to] = G[x][i];
       ^
0_0_24790999_11424.cpp:56:38: error: 'p' was not declared in this scope
    for (int u = t; u != s; u = edges[p[u]].from) {
                                      ^
0_0_24790999_11424.cpp: In function 'int main()':
0_0_24790999_11424.cpp:68:10: error: 'vis' was not declared in this scope
   memset(vis, 0, sizeof(vis));
          ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-28 06:11:27, Gzip enabled