Borderou de evaluare (job #1487277)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 16 septembrie 2015 17:00:45
Problema Pal Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c:2:47: error: conflicting types for ‘v’ int l,c,o,p,n,f[10],a[101],b[101],i,u,v,t,k,j,v[10]; ^ user.c:2:39: note: previous declaration of ‘v’ was here int l,c,o,p,n,f[10],a[101],b[101],i,u,v,t,k,j,v[10]; ^ user.c: In function ‘main’: user.c:20:4: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if(!n&&c-f[0]==4) ^ user.c:27:5: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if(o%2) ^ user.c:43:13: warning: comparison between pointer and integer [enabled by default] for(;u<k||v<t;) { ^ user.c:46:12: warning: comparison between pointer and integer [enabled by default] if(v<t) ^ user.c:47:16: error: lvalue required as increment operand P(v++,b,p); ^ user.c:50:20: error: ‘p1’ undeclared (first use in this function) printf("%d",p1[i]); ^ user.c:50:20: note: each undeclared identifier is reported only once for each function it appears in user.c:9:9: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("pal.in","r",stdin),freopen("pal.out","w",stdout),scanf("%d",&l); ^ user.c:9:37: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("pal.in","r",stdin),freopen("pal.out","w",stdout),scanf("%d",&l); ^ user.c:9:65: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] freopen("pal.in","r",stdin),freopen("pal.out","w",stdout),scanf("%d",&l); ^ user.c:11:8: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&f[i]),c+=f[i]; ^

Ceva nu functioneaza?