Borderou de evaluare (job #1471335)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 13 august 2015 16:57:17
Problema Trie 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 *f[26]; ^ user.c: In function ‘A’: user.c:16:21: warning: assignment from incompatible pointer type [enabled by default] s->f[*l-'a']=(N*)malloc(sizeof(N)),s->n++; ^ user.c:17:2: warning: passing argument 1 of ‘A’ from incompatible pointer type [enabled by default] A(s->f[*l-'a'],l+1); ^ user.c:10:6: note: expected ‘struct N *’ but argument is of type ‘int *’ void A(N *s,char *l) { ^ user.c: In function ‘D’: user.c:22:2: warning: passing argument 1 of ‘D’ from incompatible pointer type [enabled by default] else if(D(s->f[*l-'a'],l+1)) ^ user.c:19:5: note: expected ‘struct N *’ but argument is of type ‘int *’ int D(N *s,char *l) { ^ user.c:25:3: error: unknown type name ‘delete’ delete s; ^ user.c:25:10: warning: unused variable ‘s’ [-Wunused-variable] delete s; ^ user.c: In function ‘C’: user.c:34:9: warning: passing argument 1 of ‘C’ from incompatible pointer type [enabled by default] return C(s->f[*l-'a'],l+1); ^ user.c:30:5: note: expected ‘struct N *’ but argument is of type ‘int *’ int C(N *s,char *l) { ^ user.c: In function ‘E’: user.c:37:1: warning: passing argument 1 of ‘E’ from incompatible pointer type [enabled by default] int E(N *s,char *l,int k) { return (*l=='\n'||!s->f[*l-'a'])?k:E(s->f[*l-'a'],l+1,k+1); } ^ user.c:37:5: note: expected ‘struct N *’ but argument is of type ‘int *’ int E(N *s,char *l,int k) { return (*l=='\n'||!s->f[*l-'a'])?k:E(s->f[*l-'a'],l+1,k+1); } ^ user.c: In function ‘main’: user.c:39:9: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("trie.in","r",stdin),freopen("trie.out","w",stdout); ^ user.c:39:38: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("trie.in","r",stdin),freopen("trie.out","w",stdout); ^ user.c:43:14: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] fgets(l,32,stdin); ^

Ceva nu functioneaza?