Borderou de evaluare (job #2371588)

Utilizator caesar2001Stoica Alexandru caesar2001 Data 6 martie 2019 18:28:58
Problema Trie Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 90

Raport evaluator

Compilare: main.cpp: In constructor 'Trie::Trie()': main.cpp:27:38: warning: passing NULL to non-pointer argument 2 of 'void* memset(void*, int, size_t)' [-Wconversion-null] memset(son, NULL, sizeof(son)); ^ main.cpp: In function 'void add(Trie*, int, const string&)': main.cpp:36:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(pos == s.size()) ~~~~^~~~~~~~~~~ main.cpp:40:25: warning: array subscript has type 'char' [-Wchar-subscripts] if(node -> son[c] == NULL) ^ main.cpp:41:26: warning: array subscript has type 'char' [-Wchar-subscripts] node -> son[c] = new Trie(); ^ main.cpp:43:26: warning: array subscript has type 'char' [-Wchar-subscripts] add(node -> son[c], pos + 1, s); ^ main.cpp: In function 'void del(Trie*, int, const string&)': main.cpp:49:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(pos == s.size()) ~~~~^~~~~~~~~~~ main.cpp:53:26: warning: array subscript has type 'char' [-Wchar-subscripts] del(node -> son[c], pos + 1, s); ^ main.cpp: In function 'int query2(Trie*, int, const string&)': main.cpp:58:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(pos == s.size()) ~~~~^~~~~~~~~~~ main.cpp:62:21: warning: array subscript has type 'char' [-Wchar-subscripts] if(node -> son[c] == NULL) ^ main.cpp:64:32: warning: array subscript has type 'char' [-Wchar-subscripts] return query2(node -> son[c], pos + 1, s); ^ main.cpp: In function 'int query3(Trie*, int, const string&)': main.cpp:68:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(pos == s.size()) ~~~~^~~~~~~~~~~ main.cpp:72:21: warning: array subscript has type 'char' [-Wchar-subscripts] if(node -> son[c] == NULL) ^ main.cpp:75:21: warning: array subscript has type 'char' [-Wchar-subscripts] if(node -> son[c] -> pref == 0) ^ main.cpp:77:32: warning: array subscript has type 'char' [-Wchar-subscripts] return query3(node -> son[c], pos + 1, s); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms131kbOK55
22ms131kbOK55
33ms131kbOK55
43ms131kbOK55
53ms131kbOK55
64ms131kbOK55
76ms262kbOK55
88ms262kbOK55
913ms524kbOK55
1020ms1441kbOK55
1123ms262kbOK55
1243ms2883kbOK55
1349ms2359kbOK55
1447ms655kbOK55
1556ms655kbOK510
16142ms20316kbOK5
1753ms262kbOK510
18139ms15204kbOK5
1965ms393kbOK50
20111ms20496kbMemory limit exceeded0
Punctaj total90

Ceva nu functioneaza?