Borderou de evaluare (job #2761341)

Utilizator BogdanAlexandruBogdan-Alexandru Dig BogdanAlexandru Data 1 iulie 2021 18:26:38
Problema Trie Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void AddTrie(Trie**, char*)': main.cpp:31:21: warning: array subscript has type 'char' [-Wchar-subscripts] if(!p->poz[c]) { ^ main.cpp:32:21: warning: array subscript has type 'char' [-Wchar-subscripts] p->poz[c] = 1; ^ main.cpp:33:22: warning: array subscript has type 'char' [-Wchar-subscripts] p->next[c] = CreateNod(); ^ main.cpp:36:29: warning: array subscript has type 'char' [-Wchar-subscripts] last = p = p->next[c]; ^ main.cpp:26:9: warning: unused variable 'lengh' [-Wunused-variable] int lengh = strlen(cuv) - 1; ^~~~~ main.cpp: In function 'void DeleteTrie(Trie**, char*)': main.cpp:49:21: warning: array subscript has type 'char' [-Wchar-subscripts] if(!p->poz[c]) ^ main.cpp:56:29: warning: array subscript has type 'char' [-Wchar-subscripts] last = p = p->next[c]; ^ main.cpp: In function 'int PrintFreg(Trie*, char*)': main.cpp:85:24: warning: array subscript has type 'char' [-Wchar-subscripts] if(!root->poz[c]) ^ main.cpp:87:35: warning: array subscript has type 'char' [-Wchar-subscripts] last = root = root->next[c]; ^ main.cpp:80:9: warning: unused variable 'lengh' [-Wunused-variable] int lengh = strlen(cuv) - 1; ^~~~~ main.cpp: In function 'int PrintPref(Trie*, char*)': main.cpp:100:24: warning: array subscript has type 'char' [-Wchar-subscripts] if(!root->poz[c]) ^ main.cpp:103:35: warning: array subscript has type 'char' [-Wchar-subscripts] last = root = root->next[c]; ^ main.cpp:95:9: warning: unused variable 'lenght' [-Wunused-variable] int lenght = strlen(cuv) - 1, lgt = 0, maxfreq; ^~~~~~ main.cpp:95:35: warning: unused variable 'lgt' [-Wunused-variable] int lenght = strlen(cuv) - 1, lgt = 0, maxfreq; ^~~ main.cpp:96:11: warning: variable 'last' set but not used [-Wunused-but-set-variable] Trie* last; ^~~~ main.cpp: In function 'int main()':
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms131kbIncorect00
22ms131kbIncorect00
33ms131kbIncorect00
43ms131kbIncorect00
53ms131kbIncorect00
64ms131kbIncorect00
76ms262kbIncorect00
88ms131kbIncorect00
917ms593kbIncorect00
1022ms1703kbIncorect00
1122ms262kbIncorect00
1237ms3538kbIncorect00
1342ms2883kbIncorect00
1437ms917kbIncorect00
1555ms786kbIncorect00
16141ms24379kbIncorect0
1781ms262kbIncorect00
18151ms17825kbIncorect0
1965ms262kbIncorect00
20140ms30494kbMemory limit exceeded0
Punctaj total0

Ceva nu functioneaza?