0_0_27546184_16589.cpp:7:11: error: 'N' was not declared in this scope
int par[N];
^
0_0_27546184_16589.cpp:8:12: error: 'N' was not declared in this scope
int rank[N];
^
0_0_27546184_16589.cpp: In constructor 'UFDS::UFDS(int)':
0_0_27546184_16589.cpp:13:5: error: 'par' was not declared in this scope
par[i] = i;
^
0_0_27546184_16589.cpp:14:9: error: missing template arguments before '[' token
rank[i] = 0;
^
0_0_27546184_16589.cpp: In member function 'int UFDS::findSet(int)':
0_0_27546184_16589.cpp:19:12: error: 'par' was not declared in this scope
if(i == par[i])
^
0_0_27546184_16589.cpp: In member function 'void UFDS::unionSet(int, int)':
0_0_27546184_16589.cpp:37:13: error: missing template arguments before '[' token
if (rank[x] > rank[y])
^
0_0_27546184_16589.cpp:37:23: error: missing template arguments before '[' token
if (rank[x] > rank[y])
^
0_0_27546184_16589.cpp:38:6: error: 'par' was not declared in this scope
par[y] = x;
^
0_0_27546184_16589.cpp:40:6: error: 'par' was not declared in this scope
par[x] = y;
^
0_0_27546184_16589.cpp:41:14: error: missing template arguments before '[' token
if (rank[x] == rank[y])
^
0_0_27546184_16589.cpp:41:25: error: missing template arguments before '[' token
if (rank[x] == rank[y])
^
0_0_27546184_16589.cpp:42:11: error: missing template arguments before '[' token
rank[x]++;
^
|