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_39541676_26248.cpp:1:8: error: 'a' was not declared in this scope
    1 | int t1=a[i].id,t2=a[i-1].id;
      |        ^
0_0_39541676_26248.cpp:1:10: error: 'i' was not declared in this scope
    1 | int t1=a[i].id,t2=a[i-1].id;
      |          ^
0_0_39541676_26248.cpp:3:9: error: 'G' does not name a type
    3 |         G[t1].push_back({t2,w});
      |         ^
0_0_39541676_26248.cpp:3:31: error: expected unqualified-id before ')' token
    3 |         G[t1].push_back({t2,w});
      |                               ^
0_0_39541676_26248.cpp:4:9: error: 'G' does not name a type
    4 |         G[t2].push_back({t1,w});
      |         ^
0_0_39541676_26248.cpp:4:31: error: expected unqualified-id before ')' token
    4 |         G[t2].push_back({t1,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-11-17 03:53:41, Gzip enabled