Borderou de evaluare (job #1472541)
Utilizator | Data | 17 august 2015 12:26:35 | |
---|---|---|---|
Problema | Aho-Corasick | Status | done |
Runda | Arhiva educationala | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c:6:2: error: unknown type name ‘M’
M *l[26],*x;
^
user.c: In function ‘V’:
user.c:12:41: error: expected ‘)’ before numeric constant
N *r=(N*)malloc(sizeof(N)),memset(r,0,sizeof(N)),memset(r->l,0,26);
^
user.c: In function ‘A’:
user.c:21:2: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(!r->l[*k])
^
user.c:22:7: warning: array subscript has type ‘char’ [-Wchar-subscripts]
r->l[*k]=V();
^
user.c:22:15: warning: assignment from incompatible pointer type [enabled by default]
r->l[*k]=V();
^
user.c:23:2: warning: array subscript has type ‘char’ [-Wchar-subscripts]
A(r->l[*k++]);
^
user.c:23:2: warning: passing argument 1 of ‘A’ from incompatible pointer type [enabled by default]
user.c:15:6: note: expected ‘struct N *’ but argument is of type ‘int *’
void A(N *r) {
^
user.c: In function ‘main’:
user.c:29:10: warning: assignment from incompatible pointer type [enabled by default]
for(r->x=c[u++]=r;p<u;)
^
user.c:32:14: warning: assignment from incompatible pointer type [enabled by default]
for(s=t->x;s!=r&&!s->l[i];s=s->x);
^
user.c:32:36: warning: assignment from incompatible pointer type [enabled by default]
for(s=t->x;s!=r&&!s->l[i];s=s->x);
^
user.c:33:16: error: request for member ‘x’ in something not a structure or union
t->l[i]->x=(s->l[i]&&s->l[i]!=t->l[i]?s->l[i]:r),c[u++]=t->l[i];
^
user.c:33:54: warning: pointer type mismatch in conditional expression [enabled by default]
t->l[i]->x=(s->l[i]&&s->l[i]!=t->l[i]?s->l[i]:r),c[u++]=t->l[i];
^
user.c:33:64: warning: assignment from incompatible pointer type [enabled by default]
t->l[i]->x=(s->l[i]&&s->l[i]!=t->l[i]?s->l[i]:r),c[u++]=t->l[i];
^
user.c:33: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:31: warning: assignment from incompatible pointer type [enabled by default]
for(;!q->l[e[i]-'a']&&q!=r;q=q->x);
^
user.c:37:35: warning: pointer type mismatch in conditional expression [enabled by default]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !