Borderou de evaluare (job #2820111)

Utilizator florinrafiliuRafiliu Florin florinrafiliu Data 19 decembrie 2021 21:47:10
Problema Dictree Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In member function 'void Trie::Add(char*)': main.cpp:32:30: warning: array subscript has type 'char' [-Wchar-subscripts] 32 | if(p -> child[s[i]] == NULL) { | ~~~^ main.cpp:33:31: warning: array subscript has type 'char' [-Wchar-subscripts] 33 | p -> child[s[i]] = new Node(); | ~~~^ main.cpp:35:31: warning: array subscript has type 'char' [-Wchar-subscripts] 35 | p = p -> child[s[i]]; | ~~~^ main.cpp: In member function 'void Trie::Erase(Trie::Node*, char*)': main.cpp:47:29: warning: array subscript has type 'char' [-Wchar-subscripts] 47 | Erase(p -> child[s[0]], s + 1); | ~~~^ main.cpp:48:26: warning: array subscript has type 'char' [-Wchar-subscripts] 48 | if(p -> child[s[0]] -> cnt == 0) { | ~~~^ main.cpp:49:40: warning: array subscript has type 'char' [-Wchar-subscripts] 49 | Node *temp = p -> child[s[0]]; | ~~~^ main.cpp:51:27: warning: array subscript has type 'char' [-Wchar-subscripts] 51 | p -> child[s[0]] = NULL; | ~~~^ main.cpp: In member function 'int Trie::Count(char*)': main.cpp:62:30: warning: array subscript has type 'char' [-Wchar-subscripts] 62 | if(p -> child[s[i]] != NULL) | ~~~^ main.cpp:63:35: warning: array subscript has type 'char' [-Wchar-subscripts] 63 | p = p -> child[s[i]]; | ~~~^ main.cpp: In member function 'int Trie::maxP(char*)': main.cpp:71:30: warning: array subscript has type 'char' [-Wchar-subscripts] 71 | if(p -> child[s[i]] != NULL) | ~~~^ main.cpp:72:35: warning: array subscript has type 'char' [-Wchar-subscripts] 72 | p = p -> child[s[i]]; | ~~~^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
132ms13115kbMemory limit exceeded00
235ms8785kbOK10
332ms13115kbMemory limit exceeded0
429ms13115kbMemory limit exceeded0
528ms13115kbMemory limit exceeded0
629ms13115kbMemory limit exceeded0
728ms13115kbMemory limit exceeded0
828ms13115kbMemory limit exceeded0
928ms13115kbMemory limit exceeded0
1029ms13115kbMemory limit exceeded0
Punctaj total0

Ceva nu functioneaza?