Borderou de evaluare (job #1358853)

Utilizator alexander34roArdelean Alexandru Andrei alexander34ro Data 24 februarie 2015 20:13:46
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:23: error: size of array ‘w’ is too large int n,m,w[50001][50001],distanta[50001],vecin[50001],viz[50001]; ^ user.cpp: In function ‘void citeste_fa()’: user.cpp:23:22: error: ‘w’ was not declared in this scope if(i!=j) w[i][j]=oo; ^ user.cpp:24:18: error: ‘w’ was not declared in this scope else w[i][j]=0; ^ user.cpp:26:20: error: ‘w’ was not declared in this scope f>>x>>y>>k,w[x][y]=k; ^ user.cpp: In function ‘void aplica_dijkstra_fa(int)’: user.cpp:33:21: error: ‘w’ was not declared in this scope distanta[i]=w[s][i]; ^ user.cpp:43:44: error: ‘w’ was not declared in this scope if(distanta[i]>distanta[j]+w[j][i]) ^

Ceva nu functioneaza?