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_39513106_1278.cpp:7:8: error: 'vector' in namespace 'std' does not name a template type
    7 | std :: vector <int> t[D][N]; // t[k][u] 表示第 k 层图中以 u 为根的并查集树
      |        ^~~~~~
0_0_39513106_1278.cpp:1:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
  +++ |+#include <vector>
    1 | typedef unsigned long long ull;
0_0_39513106_1278.cpp:10:8: error: 'unordered_map' in namespace 'std' does not name a template type
   10 | std :: unordered_map <ull, int> cnt;
      |        ^~~~~~~~~~~~~
0_0_39513106_1278.cpp:1:1: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'?
  +++ |+#include <unordered_map>
    1 | typedef unsigned long long ull;
0_0_39513106_1278.cpp: In function 'void add(ull)':
0_0_39513106_1278.cpp:13:17: error: 'cnt' was not declared in this scope; did you mean 'int'?
   13 |         int x = cnt[ha];
      |                 ^~~
      |                 int
0_0_39513106_1278.cpp: In function 'void del(ull)':
0_0_39513106_1278.cpp:19:17: error: 'cnt' was not declared in this scope; did you mean 'int'?
   19 |         int x = cnt[ha];
      |                 ^~~
      |                 int
0_0_39513106_1278.cpp: In function 'int main()':
0_0_39513106_1278.cpp:26:17: error: 'read' was not declared in this scope
   26 |         int d = read(), n = read(), m = read();
      |                 ^~~~
0_0_39513106_1278.cpp:27:16: error: 'mt19937_64' is not a member of 'std'
   27 |         std :: mt19937_64 rng(std :: random_device{}());
      |                ^~~~~~~~~~
0_0_39513106_1278.cpp:27:54: error: expected primary-expression before ')' token
   27 |         std :: mt19937_64 rng(std :: random_device{}());
      |                                                      ^
0_0_39513106_1278.cpp:29:26: error: 'rng' was not declared in this scope
   29 |                 val[i] = rng();
      |                          ^~~
0_0_39513106_1278.cpp:31:38: error: 'n' was not declared in this scope
   31 |                 for (int u = 1; u <= n; ++u) {
      |                                      ^
0_0_39513106_1278.cpp:34:25: error: 't' was not declared in this scope
   34 |                         t[i][u].push_back(u);
      |                         ^
0_0_39513106_1278.cpp:38:30: error: 'n' was not declared in this scope
   38 |         for (int u = 1; u <= n; ++u)
      |                              ^
0_0_39513106_1278.cpp:41:16: error: 'm' was not declared in this scope
   41 |         while (m--) {
      |                ^
0_0_39513106_1278.cpp:43:24: error: 'k' was not declared in this scope
   43 |                 u = rt[k][u]; v = rt[k][v];
      |                        ^
0_0_39513106_1278.cpp:43:31: error: 'v' was not declared in this scope
   43 |                 u = rt[k][u]; v = rt[k][v];
      |                               ^
0_0_39513106_1278.cpp:45:25: error: 'printf' was not declared in this scope
   45 |                         printf("%d\n", ans);
      |                         ^~~~~~
0_0_39513106_1278.cpp:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | typedef unsigned long long ull;
0_0_39513106_1278.cpp:48:21: error: 't' was not declared in this scope
   48 |                 if (t[k][v].size() > t[k][u].size())
      |                     ^
0_0_39513106_1278.cpp:49:32: error: 'swap' is not a member of 'std'
   49 |                         std :: swap(u, v);
      |                                ^~~~
0_0_39513106_1278.cpp:50:30: error: 't' was not declared in this scope
   50 |                 for (int x : t[k][v]) {
      |                              ^
0_0_39513106_1278.cpp:57:17: error: 't' was not declared in this scope
   57 |                 t[k][v].clear();
      |                 ^
0_0_39513106_1278.cpp:58:17: error: 'printf' was not declared in this scope
   58 |                 printf("%d\n", ans);
      |                 ^~~~~~
0_0_39513106_1278.cpp:58:17: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?


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 12:42:44, Gzip enabled