Borderou de evaluare (job #1089954)

Utilizator ionut95Mihai Alexandru ionut95 Data 22 ianuarie 2014 08:44:30
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:19: error: size of array ‘mat’ is too large int mat[Nmax][Nmax],v[Nmax], d[Nmax], t[Nmax],m,n; ^ user.cpp: In function ‘void dijkstra(int)’: user.cpp:15:14: error: ‘mat’ was not declared in this scope d[i]=mat[ns][i]; ^ user.cpp:34:43: error: ‘mat’ was not declared in this scope if(v[i]==0 && d[i]>d[nod]+mat[nod][i]) ^ user.cpp:12:17: warning: unused variable ‘j’ [-Wunused-variable] int nod, i, j, minn=inf,ok=1; ^ user.cpp: In function ‘int main()’: user.cpp:56:13: error: ‘mat’ was not declared in this scope mat[i][j]=inf; ^ user.cpp:60:9: error: ‘mat’ was not declared in this scope mat[a][b]=c; ^

Ceva nu functioneaza?