Borderou de evaluare (job #1484497)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 11 septembrie 2015 12:44:36
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:13:24: error: ‘M’ undeclared (first use in this function) g[i]=h[i]=(M*)malloc(w[i]*sizeof(M)); ^ user.c:13:24: note: each undeclared identifier is reported only once for each function it appears in user.c:13:26: error: expected expression before ‘)’ token g[i]=h[i]=(M*)malloc(w[i]*sizeof(M)); ^ 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; ^ user.c:11:18: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&a[i],&b[i],&c[i]),w[a[i]]++,w[b[i]]++; ^

Ceva nu functioneaza?