Pagini recente » Borderou de evaluare (job #234688) | Borderou de evaluare (job #1217155) | Borderou de evaluare (job #913800) | Borderou de evaluare (job #2244599) | Borderou de evaluare (job #2579373)
Borderou de evaluare (job #2579373)
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:61:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < s.size(); ++i) {
~~^~~~~~~~~~
main.cpp:63:27: warning: array subscript has type 'char' [-Wchar-subscripts]
if(curr->nxt[c] == 0) break;
^
main.cpp:64:31: warning: array subscript has type 'char' [-Wchar-subscripts]
curr = curr->nxt[c];
^
main.cpp:65: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:74:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < s.size(); ++i) {
~~^~~~~~~~~~
main.cpp:76:27: warning: array subscript has type 'char' [-Wchar-subscripts]
if(curr->nxt[c] == 0) break;
^
main.cpp:77:31: warning: array subscript has type 'char' [-Wchar-subscripts]
curr = curr->nxt[c];
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | OK | 5 | 5 |
2 | 2ms | 131kb | OK | 5 | 5 |
3 | 3ms | 131kb | OK | 5 | 5 |
4 | 3ms | 131kb | OK | 5 | 5 |
5 | 4ms | 131kb | OK | 5 | 5 |
6 | 4ms | 131kb | OK | 5 | 5 |
7 | 7ms | 262kb | OK | 5 | 5 |
8 | 8ms | 262kb | OK | 5 | 5 |
9 | 14ms | 524kb | OK | 5 | 5 |
10 | 20ms | 1441kb | OK | 5 | 5 |
11 | 24ms | 262kb | OK | 5 | 5 |
12 | 44ms | 2752kb | OK | 5 | 5 |
13 | 51ms | 2359kb | OK | 5 | 5 |
14 | 48ms | 786kb | OK | 5 | 5 |
15 | 58ms | 655kb | OK | 5 | 10 |
16 | 132ms | 19005kb | OK | 5 |
17 | 65ms | 262kb | OK | 5 | 10 |
18 | 142ms | 14024kb | OK | 5 |
19 | 66ms | 262kb | OK | 5 | 10 |
20 | 168ms | 25427kb | OK | 5 |
Punctaj total | 100 |