Borderou de evaluare (job #1472641)

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

Raport evaluator

Eroare de compilare: user.c:5:2: error: unknown type name ‘T’ T *U; ^ user.c: In function ‘M’: user.c:30:58: warning: operation on ‘h[l]’ may be undefined [-Wsequence-point] void M(int l,int k) { for(d[h[l]]=k;l>1&&d[h[l/2]]>k;h[l]^=h[l/2]^=h[l]^=h[l/2],w[h[l]]=l,w[h[l/2]]=l/2,l/=2); } ^ user.c: In function ‘main’: user.c:36:24: warning: assignment from incompatible pointer type [enabled by default] p->I=j,p->C=k,p->U=g[i],g[i]=p,free(p); ^ user.c:38:24: warning: assignment from incompatible pointer type [enabled by default] p->I=i,p->C=k,p->U=g[j],g[j]=p,free(p); ^ user.c:43:46: warning: assignment from incompatible pointer type [enabled by default] for(i=h[1],l[i]=1,D(&j,w[i]),p=g[i];p;p=p->U) ^ user.c:32:9: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("apm.in","r",stdin),freopen("apm.out","w",stdout),scanf("%d%d",&n,&m); ^ user.c:32:37: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("apm.in","r",stdin),freopen("apm.out","w",stdout),scanf("%d%d",&n,&m); ^ user.c:32:65: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] freopen("apm.in","r",stdin),freopen("apm.out","w",stdout),scanf("%d%d",&n,&m); ^ user.c:34:11: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&i,&j,&k); ^

Ceva nu functioneaza?