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_22703999_7262.cpp:2:22: error: 'maxn' was not declared in this scope
 int T,n,k,u,v,ans,sz[maxn];
                      ^
0_0_22703999_7262.cpp:3:1: error: 'vector' does not name a type
 vector<int>G[maxn];
 ^
0_0_22703999_7262.cpp: In function 'void dfs(int, int)':
0_0_22703999_7262.cpp:5:5: error: 'sz' was not declared in this scope
     sz[u]=1;
     ^
0_0_22703999_7262.cpp:6:18: error: 'G' was not declared in this scope
     for (auto& v:G[u]){
                  ^
0_0_22703999_7262.cpp: In function 'int main()':
0_0_22703999_7262.cpp:14:16: error: 'read' was not declared in this scope
     for (read(T);T--;){
                ^
0_0_22703999_7262.cpp:16:32: error: 'sz' was not declared in this scope
         for (int i=1;i<=n;i++) sz[i]=0,G[i].clear();
                                ^
0_0_22703999_7262.cpp:16:40: error: 'G' was not declared in this scope
         for (int i=1;i<=n;i++) sz[i]=0,G[i].clear();
                                        ^
0_0_22703999_7262.cpp:19:13: error: 'G' was not declared in this scope
             G[u].push_back(v);
             ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-28 00:06:07, Gzip enabled