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_37899043_12633.cpp:16:11: error: expected primary-expression before ']' token
  } e[E << ];
           ^
0_0_37899043_12633.cpp: In member function 'void FlowGraph<T>::add(int, int, T)':
0_0_37899043_12633.cpp:18:3: error: 'e' was not declared in this scope
   e[etot] = (edge) {v, head[u], f}; head[u] = etot++;
   ^
0_0_37899043_12633.cpp: In member function 'bool FlowGraph<T>::bfs()':
0_0_37899043_12633.cpp:31:34: error: 'e' was not declared in this scope
    for (int i = head[u]; ~i; i = e[i].nxt) {
                                  ^
0_0_37899043_12633.cpp: In member function 'T FlowGraph<T>::dfs(int, T)':
0_0_37899043_12633.cpp:46:41: error: 'e' was not declared in this scope
   for (int i = cur[u]; ~i; cur[u] = i = e[i].nxt) {
                                         ^


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 03:31:10, Gzip enabled