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_38362404_28886.cpp: In function 'long long int solve(int, int)':
0_0_38362404_28886.cpp:91:15: error: expected unqualified-id before '[' token
         auto &[u,v,w] = e[i];
               ^
0_0_38362404_28886.cpp:91:15: error: expected initializer before '[' token
0_0_38362404_28886.cpp:92:22: error: 'u' was not declared in this scope
         int A = find(u), B = find(v);
                      ^
0_0_38362404_28886.cpp:93:15: error: 'B' was not declared in this scope
         if(A==B) continue;
               ^
0_0_38362404_28886.cpp:94:24: error: 'B' was not declared in this scope
         g[A].push_back(B);
                        ^
0_0_38362404_28886.cpp:112:15: error: expected unqualified-id before '[' token
         auto &[u,v,w] = e[i];
               ^
0_0_38362404_28886.cpp:112:15: error: expected initializer before '[' token
0_0_38362404_28886.cpp:113:16: error: 'u' was not declared in this scope
         p[find(u)] = find(v);
                ^
0_0_38362404_28886.cpp:113:27: error: 'v' was not declared in this scope
         p[find(u)] = find(v);
                           ^
0_0_38362404_28886.cpp: In function 'int main()':
0_0_38362404_28886.cpp:128:19: error: expected unqualified-id before '[' token
             auto &[u,v,w] = e[i];
                   ^
0_0_38362404_28886.cpp:128:19: error: expected initializer before '[' token
0_0_38362404_28886.cpp:129:20: error: 'u' was not declared in this scope
             cin >> u >> v >> w;
                    ^
0_0_38362404_28886.cpp:129:25: error: 'v' was not declared in this scope
             cin >> u >> v >> w;
                         ^
0_0_38362404_28886.cpp:129:30: error: 'w' was not declared in this scope
             cin >> u >> v >> w;
                              ^


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-05-17 10:29:37, Gzip enabled