Borderou de evaluare (job #1484496)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 11 septembrie 2015 12:44:02
Problema Distante Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘main’: user.c:11:47: error: ‘w’ undeclared (first use in this function) scanf("%d%d%d",&a[i],&b[i],&c[i]),w[a[i]]++,w[b[i]]++; ^ user.c:11:47: note: each undeclared identifier is reported only once for each function it appears in user.c:11:56: warning: left-hand operand of comma expression has no effect [-Wunused-value] scanf("%d%d%d",&a[i],&b[i],&c[i]),w[a[i]]++,w[b[i]]++; ^ user.c:13:24: error: ‘M’ undeclared (first use in this function) g[i]=h[i]=(M*)malloc(w[i]*sizeof(M)); ^ user.c:13:26: error: expected expression before ‘)’ token g[i]=h[i]=(M*)malloc(w[i]*sizeof(M)); ^ user.c:15:34: warning: left-hand operand of comma expression has no effect [-Wunused-value] g[a[i]][w[a[i]]]=b[i],g[b[i]][w[b[i]]]=a[i],h[a[i]][w[a[i]]++]=h[b[i]][w[b[i]]++]=c[i]; ^ user.c:15:56: warning: left-hand operand of comma expression has no effect [-Wunused-value] g[a[i]][w[a[i]]]=b[i],g[b[i]][w[b[i]]]=a[i],h[a[i]][w[a[i]]++]=h[b[i]][w[b[i]]++]=c[i]; ^ user.c:18:12: error: ‘j’ undeclared (first use in this function) for(j=0;j<w[i];j++) ^ user.c:5:9: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("distante.in","r",stdin),freopen("distante.out","w",stdout),scanf("%d",&t); ^ user.c:5:42: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("distante.in","r",stdin),freopen("distante.out","w",stdout),scanf("%d",&t); ^ user.c:5:75: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] freopen("distante.in","r",stdin),freopen("distante.out","w",stdout),scanf("%d",&t); ^ user.c:7:14: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&n,&m,&s); ^ user.c:9:18: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",d+i),f[i]=0; ^

Ceva nu functioneaza?