Borderou de evaluare (job #1488540)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 19 septembrie 2015 10:15:37
Problema Spirala2 Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c:2:87: error: conflicting types for ‘l’ int a[51][51],c[2501],d[15],f[2501],l[2501],p[2501],s[2501],v[2501],w[31],e,g,h,i,j,k,l,n,nc,ns,nd,np,o,q,r,t,u; ^ user.c:2:37: note: previous declaration of ‘l’ was here int a[51][51],c[2501],d[15],f[2501],l[2501],p[2501],s[2501],v[2501],w[31],e,g,h,i,j,k,l,n,nc,ns,nd,np,o,q,r,t,u; ^ user.c: In function ‘A’: user.c:14:7: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if(i+u<=p) ^ user.c: In function ‘main’: user.c:52:10: error: subscripted value is neither array nor pointer nor vector l[nc]=i,f[nc++]=i*c[i]; ^ user.c:52:16: warning: left-hand operand of comma expression has no effect [-Wunused-value] l[nc]=i,f[nc++]=i*c[i]; ^ user.c:66:30: error: subscripted value is neither array nor pointer nor vector b*=(l[j]/C(b,l[j])),s[ns++]=l[j]; ^ user.c:66:39: error: subscripted value is neither array nor pointer nor vector b*=(l[j]/C(b,l[j])),s[ns++]=l[j]; ^ user.c:66:54: error: subscripted value is neither array nor pointer nor vector b*=(l[j]/C(b,l[j])),s[ns++]=l[j]; ^ user.c:66:44: warning: left-hand operand of comma expression has no effect [-Wunused-value] b*=(l[j]/C(b,l[j])),s[ns++]=l[j]; ^ user.c:74:21: warning: passing argument 2 of ‘A’ makes pointer from integer without a cast [enabled by default] if(!A(e=D(k),s,q,ns-1)&&A(e,l,u,nc-1)) ^ user.c:12:5: note: expected ‘int *’ but argument is of type ‘int’ int A(int v,int x[],int u,int p) { ^ user.c:22:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("spirala2.in","r",stdin),freopen("spirala2.out","w",stdout),scanf("%d%d",&n,&r); ^ user.c:22:45: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("spirala2.in","r",stdin),freopen("spirala2.out","w",stdout),scanf("%d%d",&n,&r); ^ user.c:22:78: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] freopen("spirala2.in","r",stdin),freopen("spirala2.out","w",stdout),scanf("%d%d",&n,&r); ^

Ceva nu functioneaza?