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_37771089_6956.cpp: In function 'graph<T> Shrink(graph<T>&)':
0_0_37771089_6956.cpp:147:19: error: expected unqualified-id before '[' token
             auto &[u, v, c] = g.edges[id];
                   ^
0_0_37771089_6956.cpp:147:19: error: expected initializer before '[' token
0_0_37771089_6956.cpp:148:19: error: 'u' was not declared in this scope
             if (s[u] == s[v] || vis[s[v]])
                   ^
0_0_37771089_6956.cpp:148:27: error: 'v' was not declared in this scope
             if (s[u] == s[v] || vis[s[v]])
                           ^
0_0_37771089_6956.cpp:150:21: error: 'u' was not declared in this scope
             G.add(s[u], s[v], c);
                     ^
0_0_37771089_6956.cpp:150:27: error: 'v' was not declared in this scope
             G.add(s[u], s[v], c);
                           ^
0_0_37771089_6956.cpp:150:31: error: 'c' was not declared in this scope
             G.add(s[u], s[v], c);
                               ^
0_0_37771089_6956.cpp:155:19: error: expected unqualified-id before '[' token
             auto &[u, v, c] = g.edges[id];
                   ^
0_0_37771089_6956.cpp:155:19: error: expected initializer before '[' token
0_0_37771089_6956.cpp:156:19: error: 'v' was not declared in this scope
             vis[s[v]] = 0;
                   ^


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 18:07:34, Gzip enabled