Borderou de evaluare (job #1472619)
Utilizator | Data | 17 august 2015 14:19:09 | |
---|---|---|---|
Problema | Aho-Corasick | Status | done |
Runda | Arhiva educationala | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c:11:21: error: conflicting types for ‘p’
C *q[100060005],*t,*p;
^
user.c:5:20: note: previous declaration of ‘p’ was here
int g,n,l,f[10005],p,u,i,o;
^
user.c: In function ‘B’:
user.c:29:12: warning: assignment makes pointer from integer without a cast [enabled by default]
for(q[p=u=1]=t;p<=u;++p) {
^
user.c:29:10: error: array subscript is not an integer
for(q[p=u=1]=t;p<=u;++p) {
^
user.c:29:21: warning: comparison between pointer and integer [enabled by default]
for(q[p=u=1]=t;p<=u;++p) {
^
user.c:30:15: error: array subscript is not an integer
C *w=q[p];
^
user.c: In function ‘A’:
user.c:48:13: error: ‘e’ undeclared (first use in this function)
e[w->d[j]]=w->m;
^
user.c:48:13: note: each undeclared identifier is reported only once for each function it appears in
user.c: In function ‘main’:
user.c:53:7: error: ‘new’ undeclared (first use in this function)
t=new ac;
^
user.c:53:11: error: expected ‘;’ before ‘ac’
t=new ac;
^
user.c:64:23: error: ‘e’ undeclared (first use in this function)
printf("%d\n",e[i]);
^
user.c:52:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ahocorasick.in","r",stdin),freopen("ahocorasick.out","w",stdout),scanf("%s",x),scanf("%d",&n);
^
user.c:52:48: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ahocorasick.in","r",stdin),freopen("ahocorasick.out","w",stdout),scanf("%s",x),scanf("%d",&n);
^
user.c:52:84: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ahocorasick.in","r",stdin),freopen("ahocorasick.out","w",stdout),scanf("%s",x),scanf("%d",&n);
^
user.c:52:98: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ahocorasick.in","r",stdin),freopen("ahocorasick.out","w",stdout),scanf("%s",x),scanf("%d",&n);
^
user.c:55:14: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",c),I(t,c,i);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !