Borderou de evaluare (job #1472454)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 17 august 2015 07:37:09
Problema Algoritmul Bellman-Ford Status done
Runda Arhiva educationala Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c:2:43: error: size of array ‘g’ is too large int m,c,n,i,j,k,l,r,p,d[50001],e[1500000],g[50001][50001],h[50001][50001]; ^ user.c:2:59: error: size of array ‘h’ is too large int m,c,n,i,j,k,l,r,p,d[50001],e[1500000],g[50001][50001],h[50001][50001]; ^ user.c: In function ‘main’: user.c:8:37: error: ‘w’ undeclared (first use in this function) scanf("%d%d%d",&i,&j,&c),g[i][w[i]++]=j,h[i][j]=c; ^ user.c:8:37: note: each undeclared identifier is reported only once for each function it appears in user.c:8:46: warning: left-hand operand of comma expression has no effect [-Wunused-value] scanf("%d%d%d",&i,&j,&c),g[i][w[i]++]=j,h[i][j]=c; ^ user.c:12:38: warning: left-hand operand of comma expression has no effect [-Wunused-value] d[g[j][i]]=d[j]+h[j][g[j][i]],e[r++]=h[j][g[j][i]]; ^ user.c:4:9: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("bellmanford.in","r",stdin),freopen("bellmanford.out","w",stdout),scanf("%d%d",&n,&m); ^ user.c:4:45: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("bellmanford.in","r",stdin),freopen("bellmanford.out","w",stdout),scanf("%d%d",&n,&m); ^ user.c:4:81: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] freopen("bellmanford.in","r",stdin),freopen("bellmanford.out","w",stdout),scanf("%d%d",&n,&m); ^

Ceva nu functioneaza?