0_0_19231068_16633.cpp:22:7: error: expected unqualified-id before ',' token
double,int>
^
0_0_19231068_16633.cpp:22:8: error: expected unqualified-id before 'int'
double,int>
^
0_0_19231068_16633.cpp:30:19: error: 'vector' does not name a type
int earn, lost, n;vector<int> vect[N], vec[N];
^
0_0_19231068_16633.cpp: In function 'void add_node(int, int, double, int, int)':
0_0_19231068_16633.cpp:47:66: error: 'vec' was not declared in this scope
int flow){ edge[edge_cnt]=node(from, to, val, cap, flow ); vec[from].push_back(edge_cnt++);}
^
0_0_19231068_16633.cpp: In function 'void build_graph()':
0_0_19231068_16633.cpp:50:12: error: 'vect' was not declared in this scope
int j=0; j<vect[i].size(); j++) {
^
0_0_19231068_16633.cpp: In function 'double spfa(int, int)':
0_0_19231068_16633.cpp:60:12: error: 'deque' was not declared in this scope
int e){ deque<int> que(1,s); cost[s]=0; flow[s]=INF; inq[s]=1; while(!que.empty()) {
^
0_0_19231068_16633.cpp:60:12: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64:0,
from 0_0_19231068_16633.cpp:17:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:735:11: note: 'std::deque'
class deque : protected _Deque_base<_Tp, _Alloc>
^
0_0_19231068_16633.cpp:60:18: error: expected primary-expression before 'int'
int e){ deque<int> que(1,s); cost[s]=0; flow[s]=INF; inq[s]=1; while(!que.empty()) {
^
0_0_19231068_16633.cpp:60:86: error: 'que' was not declared in this scope
int e){ deque<int> que(1,s); cost[s]=0; flow[s]=INF; inq[s]=1; while(!que.empty()) {
^
0_0_19231068_16633.cpp:63:12: error: 'vec' was not declared in this scope
int i=0; i<vec[x].size(); i++) { node e=edge[vec[x][i]]; if(e.cap>e.flow && cost[e.to]>cost[e.from]+e.val ) { flow[e.to]=min(flow[e.from],e.cap-e.flow); cost[e.to]=cost[e.from]+e.val; path[e.to]=vec[x][i]; if(!inq[e.to]) { inq[e.to]=1; que.push_back(e.to); } } } } return cost[e];}
^
0_0_19231068_16633.cpp:63:206: error: 'min' was not declared in this scope
int i=0; i<vec[x].size(); i++) { node e=edge[vec[x][i]]; if(e.cap>e.flow && cost[e.to]>cost[e.from]+e.val ) { flow[e.to]=min(flow[e.from],e.cap-e.flow); cost[e.to]=cost[e.from]+e.val; path[e.to]=vec[x][i]; if(!inq[e.to]) { inq[e.to]=1; que.push_back(e.to); } } } } return cost[e];}
^
0_0_19231068_16633.cpp:63:206: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_19231068_16633.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3444:5: note: 'std::min'
min(initializer_list<_Tp> __l, _Compare __comp)
^
0_0_19231068_16633.cpp: In function 'int main()':
0_0_19231068_16633.cpp:78:25: error: 'vect' was not declared in this scope
int i=0; i<=n+1; i++) vect[i].clear(); for(
^
0_0_19231068_16633.cpp:79:25: error: 'vec' was not declared in this scope
int i=0; i<=n+1; i++) vec[i].clear(); memset(edge,0,sizeof(edge)); memset(rudu,0,sizeof(rudu)); edge_cnt=0; sum=0; for(
^
0_0_19231068_16633.cpp:80:107: error: 'vect' was not declared in this scope
int i=1; i<=n; i++) { scanf("%d%d",&x[i],&y[i]); while(scanf("%d",&b), b) vect[i].push_back(b); } build_graph(); printf("Case %d: %.2f\n", ++j, -(mcmf(0,n+1)+sum)+0.0000001 ); } return 0;}
^
|