Borderou de evaluare (job #2371558)

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

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:35:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(pos == s.size()) ~~~~^~~~~~~~~~~ main.cpp:39:25: warning: array subscript has type 'char' [-Wchar-subscripts] if(node -> son[c] == NULL) ^ main.cpp:40:26: warning: array subscript has type 'char' [-Wchar-subscripts] node -> son[c] = new Trie(); ^ main.cpp:42: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:48:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(pos == s.size()) ~~~~^~~~~~~~~~~ main.cpp:52: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:57:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(pos == s.size()) ~~~~^~~~~~~~~~~ main.cpp:61:21: warning: array subscript has type 'char' [-Wchar-subscripts] if(node -> son[c] == NULL) ^ main.cpp:63: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:67:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(pos == s.size()) ~~~~^~~~~~~~~~~ main.cpp:71:21: warning: array subscript has type 'char' [-Wchar-subscripts] if(node -> son[c] == NULL) ^ main.cpp:74:21: warning: array subscript has type 'char' [-Wchar-subscripts] if(node -> son[c] -> pref == 0) ^ main.cpp:76: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
1021ms1441kbOK55
1123ms262kbOK55
1244ms3014kbOK55
1350ms2490kbOK55
1447ms786kbOK55
1556ms786kbOK50
16109ms20496kbMemory limit exceeded0
1763ms262kbOK510
18134ms16384kbOK5
1966ms393kbOK50
20105ms20496kbMemory limit exceeded0
Punctaj total80

Ceva nu functioneaza?