Borderou de evaluare (job #1472545)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 17 august 2015 12:31:57
Problema Aho-Corasick Status done
Runda Arhiva educationala Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘V’: user.c:13:6: error: incompatible types when assigning to type ‘char[10001]’ from type ‘int’ a=0,memset(r,0,sizeof(N)),memset(r->l,0,26),memset(x,0,sizeof(N)); ^ user.c:13:8: warning: left-hand operand of comma expression has no effect [-Wunused-value] a=0,memset(r,0,sizeof(N)),memset(r->l,0,26),memset(x,0,sizeof(N)); ^ user.c:13:8: warning: value computed is not used [-Wunused-value] user.c:13:56: error: ‘x’ undeclared (first use in this function) a=0,memset(r,0,sizeof(N)),memset(r->l,0,26),memset(x,0,sizeof(N)); ^ user.c:13:56: note: each undeclared identifier is reported only once for each function it appears in user.c:13:8: warning: value computed is not used [-Wunused-value] a=0,memset(r,0,sizeof(N)),memset(r->l,0,26),memset(x,0,sizeof(N)); ^ user.c: In function ‘A’: user.c:22:2: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(!r->l[*k]) ^ user.c:23:7: warning: array subscript has type ‘char’ [-Wchar-subscripts] r->l[*k]=V(); ^ user.c:24:2: warning: array subscript has type ‘char’ [-Wchar-subscripts] A(r->l[*k++]); ^ user.c: In function ‘main’: user.c:27:116: error: ‘r’ undeclared (first use in this function) freopen("ahocorasick.in","r",stdin),freopen("ahocorasick.out","w",stdout),fgets(e,1000001,stdin),scanf("%d\n",&n),r=V(); ^ user.c:34:57: warning: left-hand operand of comma expression has no effect [-Wunused-value] t->l[i]->x=(s->l[i]&&s->l[i]!=t->l[i]?s->l[i]:r),c[u++]=t->l[i]; ^ user.c:36:9: warning: left-hand operand of comma expression has no effect [-Wunused-value] for(q=r,i=0;e[i];i++) { ^

Ceva nu functioneaza?