Borderou de evaluare (job #1573241)
Utilizator | Data | 19 ianuarie 2016 15:45:21 | |
---|---|---|---|
Problema | Aho-Corasick | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:3:1: error: declaration does not declare anything [-fpermissive]
int ;
^
user.cpp:4:1: error: declaration does not declare anything [-fpermissive]
char ;
^
user.cpp: In constructor ‘trie::trie()’:
user.cpp:11:25: error: ‘phi’ was not declared in this scope
cuvinte=prefixe=phi=0;
^
user.cpp: At global scope:
user.cpp:15:8: error: ‘l’ was not declared in this scope
char s[l][23];
^
user.cpp: In function ‘void adaug_cuv()’:
user.cpp:20:19: error: ‘n’ was not declared in this scope
for(int i=0;i<n;i++)
^
user.cpp:22:19: error: ‘s’ was not declared in this scope
if(q->lit[s[l][i]]==0) q->lit[s[l][i]]=new trie;
^
user.cpp:22:21: error: ‘l’ was not declared in this scope
if(q->lit[s[l][i]]==0) q->lit[s[l][i]]=new trie;
^
user.cpp:23:18: error: ‘s’ was not declared in this scope
q=q->lit[s[l][i]];
^
user.cpp:23:20: error: ‘l’ was not declared in this scope
q=q->lit[s[l][i]];
^
user.cpp: In function ‘int main()’:
user.cpp:33:10: error: ‘s’ was not declared in this scope
gets(s+1);
^
user.cpp:35:17: error: ‘nrc’ was not declared in this scope
scanf("%d",&nrc);
^
user.cpp:36:9: error: ‘l’ was not declared in this scope
for(l=1;l<=nrc;l++)
^
user.cpp:39:9: error: ‘n’ was not declared in this scope
n=strlen(s[l]);
^
user.cpp:40:14: error: ‘i’ was not declared in this scope
for (i=0;i<n;i++)
^
user.cpp:43:5: error: expected ‘}’ at end of input
}
^
user.cpp:31:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !