F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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);
                          ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-18 21:07:22, Gzip enabled