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_32120661_12031.cpp:4:11: error: conflicting declaration 'const int N'
 const int N=205;
           ^
0_0_32120661_12031.cpp:3:5: note: previous declaration as 'int N'
 int N,M;
     ^
0_0_32120661_12031.cpp:6:8: error: array bound is not an integer constant before ']' token
 int d[N][N];
        ^
0_0_32120661_12031.cpp:6:11: error: array bound is not an integer constant before ']' token
 int d[N][N];
           ^
0_0_32120661_12031.cpp: In function 'void floyd()':
0_0_32120661_12031.cpp:12:17: error: 'd' was not declared in this scope
                 d[i][j]=min(d[i][j],d[i][k]+d[k][j]);
                 ^
0_0_32120661_12031.cpp: In function 'int main()':
0_0_32120661_12031.cpp:19:16: error: 'd' was not declared in this scope
         memset(d,INF,sizeof(d));
                ^


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-09-29 18:06:23, Gzip enabled