diff --git a/floyd_warshall.c b/floyd_warshall.c index 4efab70..08b73ac 100644 --- a/floyd_warshall.c +++ b/floyd_warshall.c @@ -1,6 +1,6 @@ #include -#define N 3 +#define N 5 typedef int Mat[N*N]; @@ -26,9 +26,11 @@ int warshall(int old, int ik, int kj) { int main( int argc, char *argv[] ) { Mat C = { - 0 , 0 , 0 , - 1 , 0 , 0 , - 0 , 1 , 0 + 0 , 1 , 0 , 0 , 0, + 0 , 0 , 1 , 0 , 0, + 0 , 0 , 0 , 0 , 0, + 1 , 0 , 0 , 0 , 0, + 0 , 0 , 0 , 1 , 0, }; matiter(C, *warshall);