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_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);
      |                                                                                       ^


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 20:52:07, Gzip enabled