0_0_32374473_30780.cpp: In function 'int findParent(int)':
0_0_32374473_30780.cpp:19:20: error: expected primary-expression before ']' token
if(par[x]!=x) par[] = findParent(par[x]);
^
0_0_32374473_30780.cpp: In function 'void mergeSort(edge*, int, int)':
0_0_32374473_30780.cpp:43:44: error: 'toRighIdx' was not declared in this scope
while(leftIdx <= toLeftIdx && rightIdx <= toRighIdx){
^
0_0_32374473_30780.cpp:54:20: error: 'toRightIdx' was not declared in this scope
while(rightIdx <= toRightIdx) tempArr[tempIdx++] = arr[rightIdx++];
^
0_0_32374473_30780.cpp: In function 'int main()':
0_0_32374473_30780.cpp:83:4: error: 'mstCost' was not declared in this scope
mstCost += c;
^
0_0_32374473_30780.cpp:85:26: error: 'mstCost' was not declared in this scope
printf("%d\n", allCost-mstCost);
^
|