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_22704029_7262.cpp:3:26: error: array bound is not an integer constant before ']' token
 int T,n,k,u,v,ans,sz[maxn];
                          ^
0_0_22704029_7262.cpp:4:1: error: 'vector' does not name a type
 vector<int>G[maxn];
 ^
0_0_22704029_7262.cpp: In function 'void dfs(int, int)':
0_0_22704029_7262.cpp:6:5: error: 'sz' was not declared in this scope
     sz[u]=1;
     ^
0_0_22704029_7262.cpp:7:18: error: 'G' was not declared in this scope
     for (auto& v:G[u]){
                  ^
0_0_22704029_7262.cpp: In function 'int main()':
0_0_22704029_7262.cpp:15:16: error: 'read' was not declared in this scope
     for (read(T);T--;){
                ^
0_0_22704029_7262.cpp:17:32: error: 'sz' was not declared in this scope
         for (int i=1;i<=n;i++) sz[i]=0,G[i].clear();
                                ^
0_0_22704029_7262.cpp:17:40: error: 'G' was not declared in this scope
         for (int i=1;i<=n;i++) sz[i]=0,G[i].clear();
                                        ^
0_0_22704029_7262.cpp:20:13: error: 'G' was not declared in this scope
             G[u].push_back(v);
             ^


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-30 02:24:42, Gzip enabled