// Warshall's algorithm with predecessors #include main() { int pred[10][10],n,i,j,k; scanf("%d",&n); for (i=0;i