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_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];//通过位运算得到反向边编号
                         ^


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-10-26 15:18:13, Gzip enabled