Problem general
User Tracxr
Submission Time 2023-02-20 20:35:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

general.cpp:6:18: error: ‘std::vector<int> pow’ redeclared as different kind of entity
6 | vector<int> dsu, pow;
| ^~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:528,
from /usr/include/c++/9/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:33,
from general.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:140:1: note: previous declaration ‘double pow(double, double)’
140 | __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
| ^~~~~~~~~~~~~~
general.cpp: In function ‘void merge(int, int)’:
general.cpp:18:21: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
18 | } else if (pow[a] < pow[b]) swap(a, b);
|