Borderou de evaluare (job #1481153)
Utilizator | Data | 3 septembrie 2015 22:10:21 | |
---|---|---|---|
Problema | SETI | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c:17:5: error: unknown type name ‘trie’
trie *fail;
^
user.c:18:5: error: unknown type name ‘trie’
trie *child[Sigma + 1];
^
user.c:20:5: error: expected specifier-qualifier-list before ‘trie’
trie() {
^
user.c:31:1: error: unknown type name ‘trie’
trie *fin[MAX_WORD]; // rezultatul se afla in "fin" -> "freq".
^
user.c:32:1: error: unknown type name ‘trie’
trie *root = new trie; // radacina.
^
user.c:32:14: error: ‘new’ undeclared here (not in a function)
trie *root = new trie; // radacina.
^
user.c:32:18: error: expected ‘,’ or ‘;’ before ‘trie’
trie *root = new trie; // radacina.
^
user.c:33:1: error: unknown type name ‘trie’
trie *Q[Smerenie * MAX_WORD]; // coada bfs().
^
user.c: In function ‘init’:
user.c:40:5: warning: array subscript has type ‘char’ [-Wchar-subscripts]
type[i] = i - 'A' + 1;
^
user.c:43:5: warning: array subscript has type ‘char’ [-Wchar-subscripts]
type[i] = i - 'A' - 5;
^
user.c: At top level:
user.c:48:10: error: unknown type name ‘trie’
void add(trie *curr, char *p, int i) {
^
user.c: In function ‘bfs’:
user.c:63:3: error: unknown type name ‘trie’
trie *curr, *suff;
^
user.c:67:8: error: request for member ‘fail’ in something not a structure or union
root -> fail = root;
^
user.c:71:16: error: request for member ‘child’ in something not a structure or union
if (curr -> child[i] != NULL) {
^
user.c:72:21: error: request for member ‘fail’ in something not a structure or union
suff = curr -> fail;
^
user.c:73:22: error: request for member ‘child’ in something not a structure or union
while ((suff -> child[i] == NULL) && (suff != root)) {
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !