Borderou de evaluare (job #1041813)

Utilizator mikeshadowIon Complot mikeshadow Data 26 noiembrie 2013 10:29:02
Problema Floyd-Warshall/Roy-Floyd Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:25:7: error: ‘MAXN’ was not declared in this scope int a[MAXN][MAXN],d[MAXN][MAXN]; ^ user.cpp:25:13: error: ‘MAXN’ was not declared in this scope int a[MAXN][MAXN],d[MAXN][MAXN]; ^ user.cpp:25:21: error: ‘MAXN’ was not declared in this scope int a[MAXN][MAXN],d[MAXN][MAXN]; ^ user.cpp:25:27: error: ‘MAXN’ was not declared in this scope int a[MAXN][MAXN],d[MAXN][MAXN]; ^ user.cpp: In function ‘void Floyd()’: user.cpp:31:17: error: ‘a’ was not declared in this scope if (a[i][j]!=0) ^ user.cpp:32:17: error: ‘d’ was not declared in this scope d[i][j]=a[i][j]; ^ user.cpp:33:18: error: ‘d’ was not declared in this scope else d[i][j]=INF; ^ user.cpp:35:9: error: ‘d’ was not declared in this scope d[i][i]=0; ^ user.cpp:39:21: error: ‘d’ was not declared in this scope d[i][j]=min(d[i][j],d[i][k]+d[k][j]); ^ user.cpp: In function ‘int main()’: user.cpp:48:18: error: ‘a’ was not declared in this scope fin>>a[i][j]; ^ user.cpp:55:19: error: ‘d’ was not declared in this scope fout<<d[i][j]<<' '; ^

Ceva nu functioneaza?