0_0_29815211_28212.cpp: In function 'void Dinic::Init_Dinic()':
0_0_29815211_28212.cpp:13:48: error: 'n' was not declared in this scope
memset(first,-1,sizeof(first)); en=0; S=1; T=n;
^
0_0_29815211_28212.cpp: In function 'long long int Dinic::max_flow()':
0_0_29815211_28212.cpp:57:31: error: 'n' was not declared in this scope
memcpy(cur,first,(n+5)*sizeof(long long));
^
0_0_29815211_28212.cpp: In function 'void SPFA::init()':
0_0_29815211_28212.cpp:77:10: error: 'Ws' was not declared in this scope
memset(Ws,0,sizeof(Ws));
^
0_0_29815211_28212.cpp: In function 'void SPFA::AddEdge(const long long int&, const long long int&, const long long int&, const long long int&)':
0_0_29815211_28212.cpp:80:32: error: 'Ws' was not declared in this scope
{u[++en]=U;v[en]=V;w[en]=W;Ws[en]=C;next[en]=first[U];first[U]=en;}
^
0_0_29815211_28212.cpp: In function 'void SPFA::Rebuild_Graph()':
0_0_29815211_28212.cpp:101:30: error: 'm' was not declared in this scope
for(long long i=1;i<=m;++i)
^
0_0_29815211_28212.cpp:103:34: error: 'Ws' was not declared in this scope
Dinic::AddEdge(u[i],v[i],Ws[i]);
^
|