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_22447595_9272.cpp: In function 'int dirMst(int, int)':
0_0_22447595_9272.cpp:45:32: error: expected '}' at end of input
                 root = id[root];//给根新的标号         }         return ans; }  int main() {         while ( scanf( "%d%d%d%d", &n, &x, &y, &z ) != EOF && ( n || x || y || z ) ) {                 for ( int i = 1; i <= n; ++i )                         scanf("%d%d%d", &pnt[i][0], &pnt[i][1], &pnt[i][2]);                 es = 0;                 for ( int i = 1; i <= n; ++i ) addedge( 0, i, pnt[i][2] * x );                 for ( int i = 1; i <= n; ++i ) {                         scanf("%d", &k);                         while(k--) {                                 int tt, linec;                                 scanf("%d", &tt);                                 linec = dist( i, tt );                                 if ( pnt[i][2] >= pnt[tt][2] ) addedge( i, tt, linec*y );                                 else addedge( i, tt, linec*y + z );                         }                 }                         int ans = dirMst(0, n + 1);                         if ( ans == -1 ) printf("poor XiaoA\n");                         else printf("%d\n", ans);         } }
                                ^
0_0_22447595_9272.cpp:45:32: error: expected '}' at end of input


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-12-29 01:51:16, Gzip enabled