Problem | simcity |
---|---|
User | wrizz69 |
Submission Time | 2024-12-18 17:02:39 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
simcity.cpp: In function ‘void unionfind(long long int, long long int)’:
simcity.cpp:24:12: error: reference to ‘rank’ is ambiguous
24 | if(rank[rootx] < rank[rooty]) {
| ^~~~
In file included from /usr/include/c++/9/bits/move.h:55,
from /usr/include/c++/9/bits/stl_pair.h:59,
from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from simcity.cpp:1:
/usr/include/c++/9/type_traits:1250:12: note: candidates are: ‘template<class> struct std::rank’
1250 | struct rank
| ^~~~
simcity.cpp:15:5: note: ‘long long int rank [300005]’
15 | int rank[300'005];
| ^~~~
simcity.cpp:24:26: error: reference to ‘rank’ is ambiguous
24