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_39472787_12946.cpp: In member function 'void DSU::init()':
0_0_39472787_12946.cpp:21:13: error: expected primary-expression before 'unsigned'
   21 | #define u64 unsigned long long
      |             ^~~~~~~~
0_0_39472787_12946.cpp:45:81: note: in expansion of macro 'u64'
   45 |                 for (int i = 1; i <= n; i++)fa[i] = i, v[i] = { i }, Hash[i] += u64(i) * seed;
      |                                                                                 ^~~
0_0_39472787_12946.cpp: In member function 'void DSU::merge(int, int)':
0_0_39472787_12946.cpp:21:13: error: expected primary-expression before 'unsigned'
   21 | #define u64 unsigned long long
      |             ^~~~~~~~
0_0_39472787_12946.cpp:54:36: note: in expansion of macro 'u64'
   54 |                         Hash[v] -= u64(y) * seed;
      |                                    ^~~
0_0_39472787_12946.cpp:21:13: error: expected primary-expression before 'unsigned'
   21 | #define u64 unsigned long long
      |             ^~~~~~~~
0_0_39472787_12946.cpp:55:36: note: in expansion of macro 'u64'
   55 |                         Hash[v] += u64(x) * seed;
      |                                    ^~~


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-27 06:11:03, Gzip enabled