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_20612076_2944.cpp:6:5: error: expected unqualified-id before '>' token
     > T;    int casee = 1;    while(T --) {        init();         cin >> n >> m >> st >> k;        for(int i=1; i<=n; i++)             dp[i] = INF;         getchar();        int aa,bb,cc;        scanf("%s",a);        for(int i=1; i<=m; i++) {            scanf("%d%d%d",&aa,&bb,&cc);            add(aa,bb,cc);        }        printf("Case %d: ",casee++);        dfs(st,st,0);        int flag = 0,ind,ans = INF;        for(int i=1; i<=n; i++) {            if(dp[i] != INF) {                flag = 1;                if(ans > dp[i]) {                    ans = dp[i];                    ind = i;                }            }        }        if(flag) printf("%d %d\n",ans,ind);        else printf("-1 -1\n");    }    return 0;}
     ^
0_0_20612076_2944.cpp:6:31: error: expected unqualified-id before 'while'
     > T;    int casee = 1;    while(T --) {        init();         cin >> n >> m >> st >> k;        for(int i=1; i<=n; i++)             dp[i] = INF;         getchar();        int aa,bb,cc;        scanf("%s",a);        for(int i=1; i<=m; i++) {            scanf("%d%d%d",&aa,&bb,&cc);            add(aa,bb,cc);        }        printf("Case %d: ",casee++);        dfs(st,st,0);        int flag = 0,ind,ans = INF;        for(int i=1; i<=n; i++) {            if(dp[i] != INF) {                flag = 1;                if(ans > dp[i]) {                    ans = dp[i];                    ind = i;                }            }        }        if(flag) printf("%d %d\n",ans,ind);        else printf("-1 -1\n");    }    return 0;}
                               ^


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-11-25 03:58:16, Gzip enabled