0_0_22368882_12193.cpp: In function 'int main()':
0_0_22368882_12193.cpp:41:17: error: 'n' was not declared in this scope
scanf("%hd", &n);
^
0_0_22368882_12193.cpp:43:3: error: 'total' was not declared in this scope
total = 0;
^
0_0_22368882_12193.cpp:55:3: error: 'cnt' was not declared in this scope
cnt = 0;
^
0_0_22368882_12193.cpp: In function 'void kruskal()':
0_0_22368882_12193.cpp:88:21: error: 'n' was not declared in this scope
for (short i=1; i<=n; ++i)
^
0_0_22368882_12193.cpp:90:20: error: 'total' was not declared in this scope
for (short i=0; i<total; ++i){
^
0_0_22368882_12193.cpp:94:8: error: 'cnt' was not declared in this scope
ans[cnt++] = comp[i];
^
|