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_20612435_11072.cpp:5:5: error: 'len' does not name a type
     len[i][l])    continue;                    if(t<len[i][l])                    {                        len[i][l]=t;                        num[i][l]=num[i][k]+num[k][l];                    }                    else if(num[i][k]+num[k][l]>num[i][l])                        num[i][l]=num[i][k]+num[k][l];                }            }        }         scanf("%d%d%d%d",&a,&b,&c,&d);        int ans=-1;        for(i=1;i<=n;i++)        {            for(l=1;l<=n;l++)            {                if(num[i][l]>ans                    && (len[a][b]==len[a][i]+len[i][l]+len[l][b])                    && (len[c][d]==len[c][i]+len[i][l]+len[l][d])                    )                    ans=num[i][l];            }        }        printf("%d\n",ans+1);    }    return 0;}
     ^
0_0_20612435_11072.cpp:5:48: error: expected unqualified-id before 'if'
     len[i][l])    continue;                    if(t<len[i][l])                    {                        len[i][l]=t;                        num[i][l]=num[i][k]+num[k][l];                    }                    else if(num[i][k]+num[k][l]>num[i][l])                        num[i][l]=num[i][k]+num[k][l];                }            }        }         scanf("%d%d%d%d",&a,&b,&c,&d);        int ans=-1;        for(i=1;i<=n;i++)        {            for(l=1;l<=n;l++)            {                if(num[i][l]>ans                    && (len[a][b]==len[a][i]+len[i][l]+len[l][b])                    && (len[c][d]==len[c][i]+len[i][l]+len[l][d])                    )                    ans=num[i][l];            }        }        printf("%d\n",ans+1);    }    return 0;}
                                                ^
0_0_20612435_11072.cpp:5:215: error: expected unqualified-id before 'else'
     len[i][l])    continue;                    if(t<len[i][l])                    {                        len[i][l]=t;                        num[i][l]=num[i][k]+num[k][l];                    }                    else if(num[i][k]+num[k][l]>num[i][l])                        num[i][l]=num[i][k]+num[k][l];                }            }        }         scanf("%d%d%d%d",&a,&b,&c,&d);        int ans=-1;        for(i=1;i<=n;i++)        {            for(l=1;l<=n;l++)            {                if(num[i][l]>ans                    && (len[a][b]==len[a][i]+len[i][l]+len[l][b])                    && (len[c][d]==len[c][i]+len[i][l]+len[l][d])                    )                    ans=num[i][l];            }        }        printf("%d\n",ans+1);    }    return 0;}
                                                                                                                                                                                                                       ^
0_0_20612435_11072.cpp:5:323: error: expected declaration before '}' token
     len[i][l])    continue;                    if(t<len[i][l])                    {                        len[i][l]=t;                        num[i][l]=num[i][k]+num[k][l];                    }                    else if(num[i][k]+num[k][l]>num[i][l])                        num[i][l]=num[i][k]+num[k][l];                }            }        }         scanf("%d%d%d%d",&a,&b,&c,&d);        int ans=-1;        for(i=1;i<=n;i++)        {            for(l=1;l<=n;l++)            {                if(num[i][l]>ans                    && (len[a][b]==len[a][i]+len[i][l]+len[l][b])                    && (len[c][d]==len[c][i]+len[i][l]+len[l][d])                    )                    ans=num[i][l];            }        }        printf("%d\n",ans+1);    }    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-23 03:46:12, Gzip enabled