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_38869217_32337.cpp:18:16: error: found ':' in nested-name-specifier, expected '::'
   18 | enum edge_type : uint8_t { DIRECTIONAL, DIRECTIONAL_REVERSE, BIDIRECTIONAL };
      |                ^
      |                ::
0_0_38869217_32337.cpp:18:6: error: 'edge_type' has not been declared
   18 | enum edge_type : uint8_t { DIRECTIONAL, DIRECTIONAL_REVERSE, BIDIRECTIONAL };
      |      ^~~~~~~~~
0_0_38869217_32337.cpp:18:26: error: expected unqualified-id before '{' token
   18 | enum edge_type : uint8_t { DIRECTIONAL, DIRECTIONAL_REVERSE, BIDIRECTIONAL };
      |                          ^
0_0_38869217_32337.cpp:26:9: error: 'edge_type' does not name a type
   26 |         edge_type type;
      |         ^~~~~~~~~
0_0_38869217_32337.cpp:30:53: error: 'edge_type' has not been declared
   30 |         edge(int _node, int _rev, flow_t _capacity, edge_type _type)
      |                                                     ^~~~~~~~~
0_0_38869217_32337.cpp:51:70: error: 'edge_type' has not been declared
   51 |     void _add_edge(int u, int v, flow_t capacity1, flow_t capacity2, edge_type type1, edge_type type2) {
      |                                                                      ^~~~~~~~~
0_0_38869217_32337.cpp:51:87: error: 'edge_type' has not been declared
   51 |     void _add_edge(int u, int v, flow_t capacity1, flow_t capacity2, edge_type type1, edge_type type2) {
      |                                                                                       ^~~~~~~~~
0_0_38869217_32337.cpp: In constructor 'dinic<flow_t>::edge::edge(int, int, flow_t, int)':
0_0_38869217_32337.cpp:31:60: error: class 'dinic<flow_t>::edge' does not have any field named 'type'
   31 |             : node(_node), rev(_rev), capacity(_capacity), type(_type) {}
      |                                                            ^~~~
0_0_38869217_32337.cpp: In member function 'void dinic<flow_t>::add_directional_edge(int, int, flow_t)':
0_0_38869217_32337.cpp:61:38: error: 'DIRECTIONAL' was not declared in this scope
   61 |         _add_edge(u, v, capacity, 0, DIRECTIONAL, DIRECTIONAL_REVERSE);
      |                                      ^~~~~~~~~~~
0_0_38869217_32337.cpp:61:51: error: 'DIRECTIONAL_REVERSE' was not declared in this scope
   61 |         _add_edge(u, v, capacity, 0, DIRECTIONAL, DIRECTIONAL_REVERSE);
      |                                                   ^~~~~~~~~~~~~~~~~~~
0_0_38869217_32337.cpp: In member function 'void dinic<flow_t>::add_bidirectional_edge(int, int, flow_t)':
0_0_38869217_32337.cpp:65:45: error: 'BIDIRECTIONAL' was not declared in this scope
   65 |         _add_edge(u, v, capacity, capacity, BIDIRECTIONAL, BIDIRECTIONAL);
      |                                             ^~~~~~~~~~~~~
0_0_38869217_32337.cpp: In member function 'std::vector<std::pair<flow_t, std::pair<int, int> > > dinic<flow_t>::min_cut(int)':
0_0_38869217_32337.cpp:169:72: error: 'DIRECTIONAL_REVERSE' was not declared in this scope
  169 |                 if (reachable[node] && !reachable[e.node] && e.type != DIRECTIONAL_REVERSE) {
      |                                                                        ^~~~~~~~~~~~~~~~~~~
0_0_38869217_32337.cpp:171:53: error: 'BIDIRECTIONAL' was not declared in this scope
  171 |                     flow_t original_cap = e.type == BIDIRECTIONAL ? rev_cap / 2 : rev_cap;
      |                                                     ^~~~~~~~~~~~~


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-06-17 07:39:42, Gzip enabled