Pagini recente » Borderou de evaluare (job #2801838) | Borderou de evaluare (job #1837494) | Borderou de evaluare (job #1336278) | Borderou de evaluare (job #421616) | Borderou de evaluare (job #3274788)
Borderou de evaluare (job #3274788)
Raport evaluator
Compilare:
main.cpp: In member function 'void Trie::insertTrie(std::string, int)':
main.cpp:16:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
16 | if(pos==S.size())///pune int
| ~~~^~~~~~~~~~
main.cpp:22:21: warning: array subscript has type 'char' [-Wchar-subscripts]
22 | if(next[ch]==nullptr)
| ^~
main.cpp:24:22: warning: array subscript has type 'char' [-Wchar-subscripts]
24 | next[ch]=new Trie;
| ^~
main.cpp:26:18: warning: array subscript has type 'char' [-Wchar-subscripts]
26 | next[ch]->insertTrie(S,pos+1);
| ^~
main.cpp: In member function 'void Trie::deleteTrie(std::string, int)':
main.cpp:32:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | if(pos==S.size())
| ~~~^~~~~~~~~~
main.cpp:39:18: warning: array subscript has type 'char' [-Wchar-subscripts]
39 | next[ch]->deleteTrie(S,pos+1);
| ^~
main.cpp:40:21: warning: array subscript has type 'char' [-Wchar-subscripts]
40 | if(next[ch]->leaves==0)///pot sterge toata ramura adica
| ^~
main.cpp:42:22: warning: array subscript has type 'char' [-Wchar-subscripts]
42 | next[ch]=nullptr;
| ^~
main.cpp:43:29: warning: array subscript has type 'char' [-Wchar-subscripts]
43 | delete next[ch];
| ^~
main.cpp: In member function 'int Trie::countTrie(std::string, int)':
main.cpp:49:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | if(pos==S.size())
| ~~~^~~~~~~~~~
main.cpp:56:21: warning: array subscript has type 'char' [-Wchar-subscripts]
56 | if(next[ch]==nullptr)
| ^~
main.cpp:60:25: warning: array subscript has type 'char' [-Wchar-subscripts]
60 | return next[ch]->countTrie(S,pos+1);
| ^~
main.cpp: In member function 'int Trie::lcpTrie(std::string, int)':
main.cpp:65:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
65 | if(pos==S.size())
| ~~~^~~~~~~~~~
main.cpp:72:21: warning: array subscript has type 'char' [-Wchar-subscripts]
72 | if(next[ch]==nullptr)
| ^~
main.cpp:76:27: warning: array subscript has type 'char' [-Wchar-subscripts]
76 | return 1+next[ch]->lcpTrie(S,pos+1);
| ^~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 303kb | OK | 5 | 5 |
2 | 0ms | 303kb | OK | 5 | 5 |
3 | 0ms | 303kb | OK | 5 | 5 |
4 | 0ms | 303kb | OK | 5 | 5 |
5 | 0ms | 303kb | OK | 5 | 5 |
6 | 1ms | 303kb | OK | 5 | 5 |
7 | 1ms | 303kb | OK | 5 | 5 |
8 | 2ms | 303kb | OK | 5 | 5 |
9 | 3ms | 557kb | OK | 5 | 5 |
10 | 4ms | 1605kb | OK | 5 | 5 |
11 | 3ms | 303kb | OK | 5 | 5 |
12 | 9ms | 3039kb | OK | 5 | 5 |
13 | 9ms | 2654kb | OK | 5 | 5 |
14 | 9ms | 983kb | OK | 5 | 5 |
15 | 9ms | 819kb | OK | 5 | 10 |
16 | 34ms | 21790kb | OK | 5 |
17 | 23ms | 15249kb | OK | 5 | 10 |
18 | 38ms | 16637kb | OK | 5 |
19 | 13ms | 524kb | OK | 5 | 10 |
20 | 48ms | 27820kb | OK | 5 |
Punctaj total | 100 |