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_37900798_28647.cpp: In member function 'void Tarjan<N, G>::tarjan(int, const G&)':
0_0_37900798_28647.cpp:68:18: error: expected unqualified-id before '[' token
             auto [v, cost] = g.e[i];
                  ^
0_0_37900798_28647.cpp:70:22: error: 'v' was not declared in this scope
             if (!dfn[v]) {
                      ^
0_0_37900798_28647.cpp: In member function 'G Tarjan<N, G>::suodian(const G&)':
0_0_37900798_28647.cpp:106:22: error: expected unqualified-id before '[' token
                 auto [v, cost] = g.e[i];
                      ^
0_0_37900798_28647.cpp:107:33: error: 'v' was not declared in this scope
                 if (co[u] == co[v]) continue;
                                 ^
0_0_37900798_28647.cpp:109:35: error: 'v' was not declared in this scope
                 res.add(co[u], co[v], cost);
                                   ^
0_0_37900798_28647.cpp:109:39: error: 'cost' was not declared in this scope
                 res.add(co[u], co[v], cost);
                                       ^


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-07-07 17:09:19, Gzip enabled