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_38328635_10053.cpp: In member function 'std::pair<_T1, _T2> mcf_graph<Cap, Cost>::flow(int, int)':
0_0_38328635_10053.cpp:30:11: error: expected unqualified-id before '[' token
      auto [ v , cap , cost ] = eG[i]; if( !cap ) continue;
           ^
0_0_38328635_10053.cpp:30:44: error: 'cap' was not declared in this scope
      auto [ v , cap , cost ] = eG[i]; if( !cap ) continue;
                                            ^
0_0_38328635_10053.cpp:31:12: error: 'v' was not declared in this scope
      if( q[v] > q[u] + cost ) { p[v] = min( p[u] , cap ) , q[v] = q[u] + cost , r[v] = i; if( !inque[v] ) inque[v] = true , que.emplace( v ); }
            ^
0_0_38328635_10053.cpp:31:24: error: 'cost' was not declared in this scope
      if( q[v] > q[u] + cost ) { p[v] = min( p[u] , cap ) , q[v] = q[u] + cost , r[v] = i; if( !inque[v] ) inque[v] = true , que.emplace( v ); }
                        ^
0_0_38328635_10053.cpp:31:52: error: 'cap' was not declared in this scope
      if( q[v] > q[u] + cost ) { p[v] = min( p[u] , cap ) , q[v] = q[u] + cost , r[v] = i; if( !inque[v] ) inque[v] = true , que.emplace( v ); }
                                                    ^
0_0_38328635_10053.cpp: In function 'void solve()':
0_0_38328635_10053.cpp:51:7: error: expected unqualified-id before '[' token
  auto [ flow , cost ] = G.flow( S , T ); cout << -cost << "\n";
       ^
0_0_38328635_10053.cpp:51:51: error: 'cost' was not declared in this scope
  auto [ flow , cost ] = G.flow( S , T ); cout << -cost << "\n";
                                                   ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-01-10 12:09:48, Gzip enabled