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_39476074_23245.cpp:21:14: error: 'n' was not declared in this scope
   21 | int ancestor[n + 100][d + 100];
      |              ^
0_0_39476074_23245.cpp:21:23: error: 'd' was not declared in this scope
   21 | int ancestor[n + 100][d + 100];
      |                       ^
0_0_39476074_23245.cpp:22:17: error: 'n' was not declared in this scope
   22 | vector<int> son[n + 100][d + 100];
      |                 ^
0_0_39476074_23245.cpp:22:26: error: 'd' was not declared in this scope
   22 | vector<int> son[n + 100][d + 100];
      |                          ^
0_0_39476074_23245.cpp: In function 'void work()':
0_0_39476074_23245.cpp:42:12: error: 'ancestor' was not declared in this scope
   42 |            ancestor[i][j] = i;
      |            ^~~~~~~~
0_0_39476074_23245.cpp:43:12: error: 'son' was not declared in this scope; did you mean 'sin'?
   43 |            son[i][j].clear();
      |            ^~~
      |            sin
0_0_39476074_23245.cpp:53:30: error: 'ancestor' was not declared in this scope
   53 |             unsigned int a = ancestor[x][j];
      |                              ^~~~~~~~
0_0_39476074_23245.cpp:56:16: error: 'son' was not declared in this scope; did you mean 'sin'?
   56 |             if(son[a][j].size() > son[b][j].size()) swap(a, b);
      |                ^~~
      |                sin
0_0_39476074_23245.cpp:57:26: error: 'son' was not declared in this scope; did you mean 'sin'?
   57 |             for(auto p : son[a][j]) {
      |                          ^~~
      |                          sin
0_0_39476074_23245.cpp:62:13: error: 'son' was not declared in this scope; did you mean 'sin'?
   62 |             son[a][j].clear();
      |             ^~~
      |             sin
0_0_39476074_23245.cpp:70:13: error: 'ancestor' was not declared in this scope
   70 |         a = ancestor[a][k];
      |             ^~~~~~~~
0_0_39476074_23245.cpp:76:12: error: 'son' was not declared in this scope; did you mean 'sin'?
   76 |         if(son[a][k].size() > son[b][k].size()) swap(a, b);
      |            ^~~
      |            sin
0_0_39476074_23245.cpp:77:22: error: 'son' was not declared in this scope; did you mean 'sin'?
   77 |         for(auto p : son[a][k]) {
      |                      ^~~
      |                      sin
0_0_39476074_23245.cpp:84:9: error: 'son' was not declared in this scope; did you mean 'sin'?
   84 |         son[a][k].clear();
      |         ^~~
      |         sin


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-18 19:40:18, Gzip enabled