Pagini recente » Borderou de evaluare (job #358087) | Borderou de evaluare (job #2505346) | Borderou de evaluare (job #2407885) | Borderou de evaluare (job #23084) | Borderou de evaluare (job #2561678)
Borderou de evaluare (job #2561678)
Raport evaluator
Compilare:
main.cpp: In member function 'void Trie::insert(std::__cxx11::string&, int)':
main.cpp:39:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (k >= s.size()) {
~~^~~~~~~~~~~
main.cpp:46:23: warning: array subscript has type 'char' [-Wchar-subscripts]
if (children[c] == NULL) {
^
main.cpp:47:23: warning: array subscript has type 'char' [-Wchar-subscripts]
children[c] = new Trie();
^
main.cpp:51: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:55:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (k >= s.size()) {
~~^~~~~~~~~~~
main.cpp:62:23: warning: array subscript has type 'char' [-Wchar-subscripts]
if (children[c] == NULL) {
^
main.cpp:66: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:73:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (k == s.size()) {
~~^~~~~~~~~~~
main.cpp:79:23: warning: array subscript has type 'char' [-Wchar-subscripts]
if (children[c] == NULL) {
^
main.cpp:83: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:90:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (k == s.size() || children[c] == NULL) {
~~^~~~~~~~~~~
main.cpp:90:40: warning: array subscript has type 'char' [-Wchar-subscripts]
if (k == s.size() || children[c] == NULL) {
^
main.cpp:94:23: warning: array subscript has type 'char' [-Wchar-subscripts]
if (children[c]->nrEnding == 0 && children[c]->subTreeWordCount == 0) {
^
main.cpp:94:53: warning: array subscript has type 'char' [-Wchar-subscripts]
if (children[c]->nrEnding == 0 && children[c]->subTreeWordCount == 0) {
^
main.cpp:98: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 | 7ms | 262kb | OK | 5 | 5 |
8 | 8ms | 131kb | OK | 5 | 5 |
9 | 13ms | 524kb | Incorect | 0 | 0 |
10 | 21ms | 1441kb | OK | 5 | 5 |
11 | 23ms | 262kb | OK | 5 | 5 |
12 | 43ms | 2752kb | Incorect | 0 | 0 |
13 | 50ms | 2359kb | Incorect | 0 | 0 |
14 | 48ms | 655kb | OK | 5 | 5 |
15 | 57ms | 655kb | OK | 5 | 0 |
16 | 151ms | 20316kb | Incorect | 0 |
17 | 70ms | 262kb | Incorect | 0 | 0 |
18 | 128ms | 15335kb | Incorect | 0 |
19 | 67ms | 262kb | OK | 5 | 0 |
20 | 177ms | 25690kb | Incorect | 0 |
Punctaj total | 55 |