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_38773272_9399.cpp:7:1: error: 'vector' does not name a type
    7 | vector<int>b[50005];
      | ^~~~~~
0_0_38773272_9399.cpp: In function 'int main()':
0_0_38773272_9399.cpp:26:28: error: 'b' was not declared in this scope
   26 |     for(int i=1;i<=cnt;i++)b[e[i].w].push_back(i);
      |                            ^
0_0_38773272_9399.cpp:28:21: error: 'b' was not declared in this scope
   28 |       for(int j=0;j<b[i].size();j++){
      |                     ^
0_0_38773272_9399.cpp:30:16: error: 'f2' was not declared in this scope; did you mean 'f1'?
   30 |         if(f1!=f2)f[f1]=f2,ans+=i;
      |                ^~
      |                f1
0_0_38773272_9399.cpp:34:26: error: 'b' was not declared in this scope
   34 |     for(int i=1;i<=n;i++)b[i].clear();
      |                          ^


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-22 23:36:38, Gzip enabled