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_33519999_26463.cpp:4:20: error: expected unqualified-id before numeric constant
 const int N=100005,2=100005;
                    ^
0_0_33519999_26463.cpp:7:12: error: 'M' was not declared in this scope
 int h[N],e[M],ne[M],flow[M],idx;
            ^
0_0_33519999_26463.cpp:7:18: error: 'M' was not declared in this scope
 int h[N],e[M],ne[M],flow[M],idx;
                  ^
0_0_33519999_26463.cpp:7:26: error: 'M' was not declared in this scope
 int h[N],e[M],ne[M],flow[M],idx;
                          ^
0_0_33519999_26463.cpp: In function 'void add(int, int, int)':
0_0_33519999_26463.cpp:11:5: error: 'flow' was not declared in this scope
     flow[idx]=f,e[idx]=b,ne[idx]=h[a],h[a]=idx++;
     ^
0_0_33519999_26463.cpp:11:17: error: 'e' was not declared in this scope
     flow[idx]=f,e[idx]=b,ne[idx]=h[a],h[a]=idx++;
                 ^
0_0_33519999_26463.cpp:11:26: error: 'ne' was not declared in this scope
     flow[idx]=f,e[idx]=b,ne[idx]=h[a],h[a]=idx++;
                          ^
0_0_33519999_26463.cpp: In function 'bool bfs()':
0_0_33519999_26463.cpp:24:29: error: 'ne' was not declared in this scope
         for(int i=h[x];~i;i=ne[i])
                             ^
0_0_33519999_26463.cpp:26:19: error: 'e' was not declared in this scope
             int j=e[i];
                   ^
0_0_33519999_26463.cpp:27:16: error: 'flow' was not declared in this scope
             if(flow[i]&&dist[j]>dist[x]+1)
                ^
0_0_33519999_26463.cpp: In function 'int dfs(int, int)':
0_0_33519999_26463.cpp:42:29: error: 'ne' was not declared in this scope
     for(int i=h[u];~i&&fl;i=ne[i])
                             ^
0_0_33519999_26463.cpp:44:15: error: 'e' was not declared in this scope
         int j=e[i];
               ^
0_0_33519999_26463.cpp:45:12: error: 'flow' was not declared in this scope
         if(flow[i]&&dist[j]==dist[u]+1)
            ^


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 07:06:20, Gzip enabled