Borderou de evaluare (job #1471327)
| Utilizator | Data | 13 august 2015 16:53:00 | |
|---|---|---|---|
| Problema | Trie | Status | done |
| Runda | Arhiva educationala | Compilator | c | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.c:7:2: error: expected specifier-qualifier-list before ‘N’
N() { c=n=0,memset(f,0,sizeof(f)); }
^
user.c:8:1: warning: useless storage class specifier in empty declaration [enabled by default]
};
^
user.c:10:1: error: unknown type name ‘N’
N *t=(N*)malloc(sizeof(N));
^
user.c:10:7: error: ‘N’ undeclared here (not in a function)
N *t=(N*)malloc(sizeof(N));
^
user.c:10:9: error: expected expression before ‘)’ token
N *t=(N*)malloc(sizeof(N));
^
user.c:11:8: error: expected declaration specifiers or ‘...’ before ‘N’
void A(N *s,char *l) {
^
user.c:20:7: error: expected declaration specifiers or ‘...’ before ‘N’
int D(N *s,char *l) {
^
user.c:31:7: error: expected declaration specifiers or ‘...’ before ‘N’
int C(N *s,char *l) {
^
user.c:38:7: error: expected declaration specifiers or ‘...’ before ‘N’
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:44:10: warning: implicit declaration of function ‘A’ [-Wimplicit-function-declaration]
A(t,l+2);
^
user.c:46:13: warning: implicit declaration of function ‘D’ [-Wimplicit-function-declaration]
D(t,l+2);
^
user.c:48:13: warning: implicit declaration of function ‘C’ [-Wimplicit-function-declaration]
printf("%d\n",C(t,l+2));
^
user.c:50:13: warning: implicit declaration of function ‘E’ [-Wimplicit-function-declaration]
printf("%d\n",E(t,l+2,0));
^
user.c:40: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:40: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:42:14: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(l,32,stdin);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
