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_39546923_6995.cpp:17:1: error: 'vector' does not name a type
   17 | vector<node> v[N];
      | ^~~~~~
0_0_39546923_6995.cpp:18:1: error: 'vector' does not name a type
   18 | vector<int> G[N];
      | ^~~~~~
0_0_39546923_6995.cpp: In function 'int read()':
0_0_39546923_6995.cpp:23:16: error: 'isdigit' was not declared in this scope
   23 |         while(!isdigit(c)){if(c=='-')f=-f;c=getchar();}
      |                ^~~~~~~
0_0_39546923_6995.cpp:24:15: error: 'isdigit' was not declared in this scope
   24 |         while(isdigit(c)){x=(x<<1)+(x<<3)+c-'0';c=getchar();}
      |               ^~~~~~~
0_0_39546923_6995.cpp: In function 'void dfs(int)':
0_0_39546923_6995.cpp:45:23: error: 'G' was not declared in this scope
   45 |         for(int i=0;i<G[x].size();i++){
      |                       ^
0_0_39546923_6995.cpp: In function 'int main()':
0_0_39546923_6995.cpp:67:25: error: 'G' was not declared in this scope
   67 |                         G[fa[i]].push_back(i),printf("%d %d\n",i,fa[i]);
      |                         ^
0_0_39546923_6995.cpp:76:49: error: 'v' was not declared in this scope
   76 |                         if(!pos[x])pos[x]=++tot,v[pos[x]].push_back(zero);
      |                                                 ^
0_0_39546923_6995.cpp:82:25: error: 'v' was not declared in this scope
   82 |                         v[pos[x]].push_back(w);
      |                         ^
0_0_39546923_6995.cpp:86:39: error: 'v' was not declared in this scope
   86 |                         for(int j=1;j<v[i].size();j++){
      |                                       ^
0_0_39546923_6995.cpp:101:45: error: 'v' was not declared in this scope
  101 |                                 int L=now,R=v[id].size()-2;
      |                                             ^
0_0_39546923_6995.cpp:118:44: error: 'v' was not declared in this scope
  118 |                                         if(v[id][now-1].h-v[id][mid-1].h*pw[dl]==has[r]-has[r-dl]*pw[dl]
      |                                            ^
0_0_39546923_6995.cpp:123:84: error: 'v' was not declared in this scope
  123 |                                 long long ans=1ll*((r-l+1)+(r-l+1-dl))*(dl+1)/2ll-(v[id][now].l-v[id][L-1].l);
      |                                                                                    ^
0_0_39546923_6995.cpp:128:79: error: 'G' was not declared in this scope
  128 |                 for(int i=1;i<=cnt;i++)fa[i]=ch[i][0]=ch[i][1]=len[i]=ct[i]=0,G[i].clear();
      |                                                                               ^
0_0_39546923_6995.cpp:129:40: error: 'v' was not declared in this scope
  129 |                 for(int i=1;i<=tot;i++)v[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-09-20 11:42:50, Gzip enabled