Pagini recente » Rezultatele filtrării | Rezultatele filtrării | Cod sursa (job #1597709) | Rezultatele filtrării | Borderou de evaluare (job #2561680)
Borderou de evaluare (job #2561680)
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:59:23: warning: array subscript has type 'char' [-Wchar-subscripts]
if (children[c] == NULL) {
^
main.cpp:63:23: warning: array subscript has type 'char' [-Wchar-subscripts]
if (children[c]->subTreeWordCount == 0) {
^
main.cpp:67: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:74:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (k == s.size()) {
~~^~~~~~~~~~~
main.cpp:80:23: warning: array subscript has type 'char' [-Wchar-subscripts]
if (children[c] == NULL) {
^
main.cpp:84: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:91:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (k == s.size() || children[c] == NULL) {
~~^~~~~~~~~~~
main.cpp:91:40: warning: array subscript has type 'char' [-Wchar-subscripts]
if (k == s.size() || children[c] == NULL) {
^
main.cpp:95:23: warning: array subscript has type 'char' [-Wchar-subscripts]
if (children[c]->nrEnding == 0 && children[c]->subTreeWordCount == 0) {
^
main.cpp:95:53: warning: array subscript has type 'char' [-Wchar-subscripts]
if (children[c]->nrEnding == 0 && children[c]->subTreeWordCount == 0) {
^
main.cpp:99:26: warning: array subscript has type 'char' [-Wchar-subscripts]
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | OK | 5 | 5 |
2 | 2ms | 131kb | Incorect | 0 | 0 |
3 | 3ms | 131kb | Incorect | 0 | 0 |
4 | 3ms | 131kb | Incorect | 0 | 0 |
5 | 3ms | 131kb | Incorect | 0 | 0 |
6 | 4ms | 131kb | Incorect | 0 | 0 |
7 | 7ms | 262kb | Incorect | 0 | 0 |
8 | 8ms | 131kb | Incorect | 0 | 0 |
9 | 14ms | 524kb | Incorect | 0 | 0 |
10 | 20ms | 1441kb | Incorect | 0 | 0 |
11 | 23ms | 262kb | Incorect | 0 | 0 |
12 | 44ms | 2752kb | Incorect | 0 | 0 |
13 | 50ms | 2359kb | Incorect | 0 | 0 |
14 | 38ms | 655kb | Incorect | 0 | 0 |
15 | 57ms | 655kb | Incorect | 0 | 0 |
16 | 133ms | 20316kb | Incorect | 0 |
17 | 65ms | 262kb | Incorect | 0 | 0 |
18 | 119ms | 15204kb | Incorect | 0 |
19 | 67ms | 262kb | Incorect | 0 | 0 |
20 | 169ms | 25690kb | Incorect | 0 |
Punctaj total | 5 |