Borderou de evaluare (job #1472569)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 17 august 2015 12:54:44
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘A’: user.c:5:11: warning: assignment makes pointer from integer without a cast [enabled by default] h[++(*n)]=j,w[j]=*n; ^ user.c:6:13: warning: initialization makes integer from pointer without a cast [enabled by default] int t=*n,k=h[t],x; ^ user.c:7:19: error: array subscript is not an integer while(t>1&&d[k]<d[h[t/2]]) ^ user.c:8:7: warning: assignment makes integer from pointer without a cast [enabled by default] x=h[t],h[t]=h[t/2],h[t/2]=x,w[h[t]]=t,w[h[t/2]]=t/2,t/=2; ^ user.c:8:31: warning: assignment makes pointer from integer without a cast [enabled by default] x=h[t],h[t]=h[t/2],h[t/2]=x,w[h[t]]=t,w[h[t/2]]=t/2,t/=2; ^ user.c:8:35: error: array subscript is not an integer x=h[t],h[t]=h[t/2],h[t/2]=x,w[h[t]]=t,w[h[t/2]]=t/2,t/=2; ^ user.c:8:45: error: array subscript is not an integer x=h[t],h[t]=h[t/2],h[t/2]=x,w[h[t]]=t,w[h[t/2]]=t/2,t/=2; ^ user.c:8:43: warning: left-hand operand of comma expression has no effect [-Wunused-value] x=h[t],h[t]=h[t/2],h[t/2]=x,w[h[t]]=t,w[h[t/2]]=t/2,t/=2; ^ user.c:8:57: warning: left-hand operand of comma expression has no effect [-Wunused-value] x=h[t],h[t]=h[t/2],h[t/2]=x,w[h[t]]=t,w[h[t/2]]=t/2,t/=2; ^ user.c: In function ‘D’: user.c:11:14: warning: initialization makes integer from pointer without a cast [enabled by default] int s=k,x,t=h[k]; ^ user.c:12:18: warning: assignment makes pointer from integer without a cast [enabled by default] h[k]=h[*n],h[*n]=t,x=w[h[*n]],w[h[(*n)--]]=w[h[k]],w[h[k]]=x,x=h[k]; ^ user.c:12:24: error: array subscript is not an integer h[k]=h[*n],h[*n]=t,x=w[h[*n]],w[h[(*n)--]]=w[h[k]],w[h[k]]=x,x=h[k]; ^ user.c:12:33: error: array subscript is not an integer h[k]=h[*n],h[*n]=t,x=w[h[*n]],w[h[(*n)--]]=w[h[k]],w[h[k]]=x,x=h[k]; ^ user.c:12:46: error: array subscript is not an integer h[k]=h[*n],h[*n]=t,x=w[h[*n]],w[h[(*n)--]]=w[h[k]],w[h[k]]=x,x=h[k]; ^ user.c:12:31: warning: left-hand operand of comma expression has no effect [-Wunused-value] h[k]=h[*n],h[*n]=t,x=w[h[*n]],w[h[(*n)--]]=w[h[k]],w[h[k]]=x,x=h[k]; ^ user.c:12:54: error: array subscript is not an integer h[k]=h[*n],h[*n]=t,x=w[h[*n]],w[h[(*n)--]]=w[h[k]],w[h[k]]=x,x=h[k]; ^

Ceva nu functioneaza?