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_38893658_22767.cpp:18:1: error: 'vector' does not name a type
   18 | vector<int> g[N];
      | ^~~~~~
0_0_38893658_22767.cpp: In function 'void clear()':
0_0_38893658_22767.cpp:44:40: error: 'g' was not declared in this scope
   44 |         for(int i=1;i<=tot;++i)fa[i]=0,g[i].clear();
      |                                        ^
0_0_38893658_22767.cpp: In function 'void getfail()':
0_0_38893658_22767.cpp:90:32: error: 'g' was not declared in this scope
   90 |         for(int i=2;i<=tot;++i)g[fa[i]].push_back(i);
      |                                ^
0_0_38893658_22767.cpp: In function 'void dfs(int)':
0_0_38893658_22767.cpp:95:23: error: 'g' was not declared in this scope
   95 |         for(int i=0;i<g[u].size();++i)dfs(g[u][i]),siz[u]+=siz[g[u][i]];
      |                       ^


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-26 02:25:59, Gzip enabled