Pagini recente » Borderou de evaluare (job #2485357) | Borderou de evaluare (job #1689840) | Borderou de evaluare (job #1971573) | Borderou de evaluare (job #2099919) | Borderou de evaluare (job #2561676)
Borderou de evaluare (job #2561676)
Raport evaluator
Compilare:
main.cpp: In member function 'void Trie::insert(std::__cxx11::string&, int)':
main.cpp:35:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (k >= s.size()) {
~~^~~~~~~~~~~
main.cpp:42:23: warning: array subscript has type 'char' [-Wchar-subscripts]
if (children[c] == NULL) {
^
main.cpp:43:23: warning: array subscript has type 'char' [-Wchar-subscripts]
children[c] = new Trie();
^
main.cpp:47:19: warning: array subscript has type 'char' [-Wchar-subscripts]
children[c]->insert(s, k + 1);
^
main.cpp: In member function 'void Trie::remove(std::__cxx11::string&, int, bool&)':
main.cpp:51:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (k >= s.size()) {
~~^~~~~~~~~~~
main.cpp:58:23: warning: array subscript has type 'char' [-Wchar-subscripts]
if (children[c] == NULL) {
^
main.cpp:62:19: warning: array subscript has type 'char' [-Wchar-subscripts]
children[c]->remove(s, k + 1, didRemove);
^
main.cpp: In member function 'int Trie::count(std::__cxx11::string&, int)':
main.cpp:69:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (k == s.size()) {
~~^~~~~~~~~~~
main.cpp:75:23: warning: array subscript has type 'char' [-Wchar-subscripts]
if (children[c] == NULL) {
^
main.cpp:79:26: warning: array subscript has type 'char' [-Wchar-subscripts]
return children[c]->count(s, k + 1);
^
main.cpp: In member function 'int Trie::longestPrefix(std::__cxx11::string&, int)':
main.cpp:86:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (k == s.size() || children[c] == NULL) {
~~^~~~~~~~~~~
main.cpp:86:40: warning: array subscript has type 'char' [-Wchar-subscripts]
if (k == s.size() || children[c] == NULL) {
^
main.cpp:90:23: warning: array subscript has type 'char' [-Wchar-subscripts]
if (children[c]->nrEnding == 0 && children[c]->subTreeWordCount == 0) {
^
main.cpp:90:53: warning: array subscript has type 'char' [-Wchar-subscripts]
if (children[c]->nrEnding == 0 && children[c]->subTreeWordCount == 0) {
^
main.cpp:94:26: warning: array subscript has type 'char' [-Wchar-subscripts]
return children[c]->longestPrefix(s, k + 1);
^
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 | 3ms | 131kb | OK | 5 | 5 |
6 | 4ms | 131kb | OK | 5 | 5 |
7 | 6ms | 262kb | OK | 5 | 5 |
8 | 8ms | 262kb | OK | 5 | 5 |
9 | 14ms | 524kb | Incorect | 0 | 0 |
10 | 21ms | 1441kb | OK | 5 | 5 |
11 | 23ms | 262kb | OK | 5 | 5 |
12 | 43ms | 2752kb | Incorect | 0 | 0 |
13 | 49ms | 2359kb | Incorect | 0 | 0 |
14 | 47ms | 655kb | OK | 5 | 5 |
15 | 57ms | 655kb | OK | 5 | 0 |
16 | 146ms | 20316kb | Incorect | 0 |
17 | 64ms | 262kb | Incorect | 0 | 0 |
18 | 140ms | 15204kb | Incorect | 0 |
19 | 67ms | 262kb | OK | 5 | 0 |
20 | 159ms | 25690kb | Incorect | 0 |
Punctaj total | 55 |