0_0_39470930_10722.cpp:19:1: error: 'vector' does not name a type
19 | vector<int> p[D][N];
| ^~~~~~
0_0_39470930_10722.cpp: In function 'void unionp(long long int, long long int, long long int, long long int)':
0_0_39470930_10722.cpp:35:12: error: 'p' was not declared in this scope; did you mean 'p1'?
35 | if(p[d1][f1].size()<p[d2][f2].size()) swap(f1,f2),swap(d1,d2),swap(p1,p2);
| ^
| p1
0_0_39470930_10722.cpp:36:21: error: 'p' was not declared in this scope
36 | for(auto &t:p[d2][f2]) {
| ^
0_0_39470930_10722.cpp: In function 'int main()':
0_0_39470930_10722.cpp:55:9: error: 'random_device' was not declared in this scope
55 | random_device rd;
| ^~~~~~~~~~~~~
0_0_39470930_10722.cpp:56:27: error: 'rd' was not declared in this scope; did you mean 'id'?
56 | unsigned int seed=rd();
| ^~
| id
0_0_39470930_10722.cpp:57:9: error: 'mt19937' was not declared in this scope
57 | mt19937 engine(seed);
| ^~~~~~~
0_0_39470930_10722.cpp:62:45: error: 'engine' was not declared in this scope; did you mean 'inline'?
62 | for(int i=1;i<=d;++i) gv[i]=engine();
| ^~~~~~
| inline
0_0_39470930_10722.cpp:64:87: error: 'p' was not declared in this scope
64 | for(int j=1;j<=n;++j) fa[i][j]=j,v[j]+=1ll*gv[i]*j,mp[v[j]]++,p[i][j].push_back(j);
| ^
|