Borderou de evaluare (job #1347692)
Utilizator | Data | 19 februarie 2015 09:19:22 | |
---|---|---|---|
Problema | Ratina | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In constructor ‘trie::trie()’:
user.cpp:16:7: error: ‘i’ was not declared in this scope
for(i = 1; i <= n; i ++){
^
user.cpp:16:19: error: ‘n’ was not declared in this scope
for(i = 1; i <= n; i ++){
^
user.cpp: At global scope:
user.cpp:20:4: error: two or more data types in declaration of ‘r’
} *r = new trie();
^
user.cpp: In function ‘void insert_trie(int*, char*)’:
user.cpp:24:10: error: request for member ‘nr’ in ‘* nod’, which is of non-class type ‘int’
nod -> nr ++;
^
user.cpp:27:12: error: request for member ‘f’ in ‘* nod’, which is of non-class type ‘int’
if(nod -> f[*S - 'a'] == 0){
^
user.cpp:28:10: error: request for member ‘f’ in ‘* nod’, which is of non-class type ‘int’
nod -> f[*S - 'a'] = new trie();
^
user.cpp:29:10: error: request for member ‘nr_fii’ in ‘* nod’, which is of non-class type ‘int’
nod -> nr_fii ++;
^
user.cpp:31:21: error: request for member ‘f’ in ‘* nod’, which is of non-class type ‘int’
insert_trie(nod -> f[*S - 'a'], S + 1);
^
user.cpp: In function ‘int prefix_trie(int*, char*)’:
user.cpp:36:12: error: request for member ‘f’ in ‘* nod’, which is of non-class type ‘int’
if(nod -> f[*S - 'a'] == 0)
^
user.cpp:38:32: error: request for member ‘f’ in ‘* nod’, which is of non-class type ‘int’
return 1 + prefix_trie(nod -> f[*S - 'a'], S + 1);
^
user.cpp: In function ‘int main()’:
user.cpp:43:9: error: ‘n’ was not declared in this scope
fin >> n >> m;
^
user.cpp:43:14: error: ‘m’ was not declared in this scope
fin >> n >> m;
^
user.cpp:44:6: error: ‘i’ was not declared in this scope
for(i = 1; i <= n; i ++)
^
user.cpp:46:10: error: ‘S’ was not declared in this scope
fin >> S[i];
^
user.cpp:47:15: error: ‘r’ was not declared in this scope
insert_trie(r,S[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !