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_37766366_25530.cpp: In member function 'void Tarjan<N, G>::tarjan(int, const G&)':
0_0_37766366_25530.cpp:73:18: error: expected unqualified-id before '[' token
             auto [v, cost] = g.e[i];
                  ^
0_0_37766366_25530.cpp:75:22: error: 'v' was not declared in this scope
             if (!dfn[v]) {
                      ^
0_0_37766366_25530.cpp: In member function 'G Tarjan<N, G>::suodian(const G&)':
0_0_37766366_25530.cpp:100:22: error: expected unqualified-id before '[' token
                 auto [v, cost] = g.e[i];
                      ^
0_0_37766366_25530.cpp:101:33: error: 'v' was not declared in this scope
                 if (co[u] == co[v]) continue;
                                 ^
0_0_37766366_25530.cpp:103:35: error: 'v' was not declared in this scope
                 res.add(co[u], co[v], cost);
                                   ^
0_0_37766366_25530.cpp:103: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-05 00:29:09, Gzip enabled