Borderou de evaluare (job #2579350)

Utilizator vxpsnVictor Pusnei vxpsn Data 12 martie 2020 13:13:24
Problema Trie Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In member function 'void Trie::Insert(std::__cxx11::string)': main.cpp:26:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < s.size(); ++i) { ~~^~~~~~~~~~ main.cpp:28:27: warning: array subscript has type 'char' [-Wchar-subscripts] if(curr->nxt[c] == 0) { ^ main.cpp:30:28: warning: array subscript has type 'char' [-Wchar-subscripts] curr->nxt[c] = new Node(); ^ main.cpp:32:31: warning: array subscript has type 'char' [-Wchar-subscripts] curr = curr->nxt[c]; ^ main.cpp:33:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(i == s.size() - 1) { ~~^~~~~~~~~~~~~~~ main.cpp: In member function 'void Trie::Delete(std::__cxx11::string)': main.cpp:42:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < s.size(); ++i) { ~~^~~~~~~~~~ main.cpp:44:31: warning: array subscript has type 'char' [-Wchar-subscripts] curr = curr->nxt[c]; ^ main.cpp:49:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(i == s.size() - 1) { ~~^~~~~~~~~~~~~~~ main.cpp: In member function 'int Trie::CntAp(std::__cxx11::string)': main.cpp:60:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < s.size(); ++i) { ~~^~~~~~~~~~ main.cpp:62:27: warning: array subscript has type 'char' [-Wchar-subscripts] if(curr->nxt[c] == 0) break; ^ main.cpp:63:31: warning: array subscript has type 'char' [-Wchar-subscripts] curr = curr->nxt[c]; ^ main.cpp:64:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(i == s.size() - 1) { ~~^~~~~~~~~~~~~~~ main.cpp: In member function 'int Trie::Prefix(std::__cxx11::string)': main.cpp:73:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < s.size(); ++i) { ~~^~~~~~~~~~ main.cpp:75:27: warning: array subscript has type 'char' [-Wchar-subscripts] if(curr->nxt[c] == 0) break; ^ main.cpp:76:31: warning: array subscript has type 'char' [-Wchar-subscripts] curr = curr->nxt[c]; ^ main.cpp:78:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms131kbIncorect00
22ms131kbIncorect00
33ms131kbIncorect00
43ms131kbIncorect00
53ms131kbIncorect00
64ms131kbIncorect00
76ms262kbIncorect00
88ms131kbIncorect00
913ms524kbIncorect00
1019ms1441kbIncorect00
1122ms262kbIncorect00
1240ms2752kbIncorect00
1337ms2359kbIncorect00
1435ms655kbIncorect00
1541ms655kbIncorect00
16135ms19660kbIncorect0
1760ms262kbIncorect00
18134ms14548kbIncorect0
1948ms262kbIncorect00
20137ms25559kbIncorect0
Punctaj total0

Ceva nu functioneaza?