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
|