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_20613108_20100.cpp:3:5: error: 'dis' does not name a type
     dis[i][k]+dis[k][j])                    dis[i][j]=dis[i][k]+dis[k][j];} int main(){    while(scanf("%d",&n)!=EOF){        int i,j;        for(i=0;i<n;i++)            for(j=0;j<n;j++)                if(i==j)                    dis[i][j]=0;                else                    dis[i][j]=INF;        int m;        int s,l;        for(i=0;i<n;i++){            scanf("%d%d",&m,&mark[i]);            for(j=0;j<m;j++){                scanf("%d%d",&s,&l);                dis[i][s]=l;            }        }        Floyed();        int min=INF;        for(i=0;i<n;i++)            if(mark[i])                if(min>dis[0][i])                    min=dis[0][i];        printf("%d\n",min);    }    return 0;}
     ^
0_0_20613108_20100.cpp:3:75: error: expected declaration before '}' token
     dis[i][k]+dis[k][j])                    dis[i][j]=dis[i][k]+dis[k][j];} int main(){    while(scanf("%d",&n)!=EOF){        int i,j;        for(i=0;i<n;i++)            for(j=0;j<n;j++)                if(i==j)                    dis[i][j]=0;                else                    dis[i][j]=INF;        int m;        int s,l;        for(i=0;i<n;i++){            scanf("%d%d",&m,&mark[i]);            for(j=0;j<m;j++){                scanf("%d%d",&s,&l);                dis[i][s]=l;            }        }        Floyed();        int min=INF;        for(i=0;i<n;i++)            if(mark[i])                if(min>dis[0][i])                    min=dis[0][i];        printf("%d\n",min);    }    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 18:49:59, Gzip enabled