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;}
^
|