Problem general
User hackerman123
Submission Time 2023-03-15 14:38:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

general.cpp: In function ‘void mergeSet(int, int)’:
general.cpp:20:22: error: expected unqualified-id before ‘int’
20 | int x = findset(i), int y = findset(j);
| ^~~
general.cpp:21:4: error: ‘y’ was not declared in this scope
21 | p[y] = x;
| ^
general.cpp: In function ‘int main()’:
general.cpp:36:35: error: ‘True’ was not declared in this scope
36 | if (isSameSet(first, second) == True){
| ^~~~