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_39351161_21183.cpp: In function 'void dickdreamer()':
0_0_39351161_21183.cpp:79:14: error: invalid conversion from 'int64_t' {aka 'long long int'} to 'int64_t*' {aka 'long long int*'} [-fpermissive]
   79 |     if (find(i) != find(1))
      |              ^
      |              |
      |              int64_t {aka long long int}
0_0_39351161_21183.cpp:79:13: error: too few arguments to function 'int64_t find(int64_t*, int64_t)'
   79 |     if (find(i) != find(1))
      |         ~~~~^~~
0_0_39351161_21183.cpp:16:5: note: declared here
   16 | int find(int *fa, int x) { return x == fa[x] ? x : fa[x] = find(fa, fa[x]); }
      |     ^~~~
0_0_39351161_21183.cpp:79:25: error: invalid conversion from 'int' to 'int64_t*' {aka 'long long int*'} [-fpermissive]
   79 |     if (find(i) != find(1))
      |                         ^
      |                         |
      |                         int
0_0_39351161_21183.cpp:79:24: error: too few arguments to function 'int64_t find(int64_t*, int64_t)'
   79 |     if (find(i) != find(1))
      |                    ~~~~^~~
0_0_39351161_21183.cpp:16:5: note: declared here
   16 | int find(int *fa, int x) { return x == fa[x] ? x : fa[x] = find(fa, fa[x]); }
      |     ^~~~


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-07-02 13:57:37, Gzip enabled