0_0_25801889_11096.cpp:7:8: error: 'Edge' was not declared in this scope
vector<Edge>edges;
^
0_0_25801889_11096.cpp:7:12: error: template argument 1 is invalid
vector<Edge>edges;
^
0_0_25801889_11096.cpp:7:12: error: template argument 2 is invalid
0_0_25801889_11096.cpp:7:18: error: invalid type in declaration before ';' token
vector<Edge>edges;
^
0_0_25801889_11096.cpp: In member function 'void MCMF::init(int)':
0_0_25801889_11096.cpp:34:15: error: request for member 'clear' in 'edges', which is of non-class type 'int'
edges.clear();
^
0_0_25801889_11096.cpp: In member function 'void MCMF::addedge(int, int, int, int)':
0_0_25801889_11096.cpp:38:15: error: request for member 'push_back' in 'edges', which is of non-class type 'int'
edges.push_back(Edge(from,to,cap,0,cost));
^
0_0_25801889_11096.cpp:39:15: error: request for member 'push_back' in 'edges', which is of non-class type 'int'
edges.push_back(Edge(to,from,0,0,-cost));
^
0_0_25801889_11096.cpp:40:17: error: request for member 'size' in 'edges', which is of non-class type 'int'
m=edges.size();
^
0_0_25801889_11096.cpp: In member function 'bool MCMF::bellmanford(int, int, int&, long long int&)':
0_0_25801889_11096.cpp:47:16: error: 'vis' was not declared in this scope
memset(vis,0,sizeof(vis));
^
0_0_25801889_11096.cpp:57:38: error: invalid types 'int[__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}]' for array subscript
Edge& e=edges[G[u][i]];
^
0_0_25801889_11096.cpp:74:38: error: invalid types 'int[int]' for array subscript
for(int u=t;u!=s;u=edges[p[u]].from)
^
0_0_25801889_11096.cpp:76:23: error: invalid types 'int[int]' for array subscript
edges[p[u]].flow+=a[t];
^
0_0_25801889_11096.cpp:77:25: error: invalid types 'int[int]' for array subscript
edges[p[u]^1].flow-=a[t];//通过位运算得到反向边编号
^
|