Borderou de evaluare (job #1846810)
Utilizator | Data | 14 ianuarie 2017 01:00:25 | |
---|---|---|---|
Problema | Sub | 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:35:18: error: ‘n’ was not declared in this scope
for(char i=0;i<n;++i) next[i]=0;
^
user.cpp:35:31: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for(char i=0;i<n;++i) next[i]=0;
^
user.cpp: In function ‘void insertTrie1(Trie*, int)’:
user.cpp:48:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(nod->next[ch]) {
^
user.cpp:49:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
Trie *jeg=nod->next[ch];
^
user.cpp:55:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
nod->next[ch]=new Trie;
^
user.cpp:56:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
Trie *jeg=nod->next[ch];
^
user.cpp:62:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
insertTrie1(nod->next[ch],pos+1);
^
user.cpp: In function ‘void insertTrie2(Trie*, int)’:
user.cpp:69:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(nod->next[ch]) {
^
user.cpp:70:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
Trie *jeg=nod->next[ch];
^
user.cpp:74:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
nod->next[ch]=new Trie;
^
user.cpp:75:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
Trie *jeg=nod->next[ch];
^
user.cpp:79:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
insertTrie2(nod->next[ch],pos+1);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !