Pagini recente » Borderou de evaluare (job #1859210) | Borderou de evaluare (job #1915055) | Borderou de evaluare (job #555435) | Borderou de evaluare (job #1045676) | Borderou de evaluare (job #2952900)
Borderou de evaluare (job #2952900)
Raport evaluator
Compilare:
main.cpp: In function 'void addWord(Trie*, int, std::string&)':
main.cpp:42:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
42 | if (pos == s.size())
| ~~~~^~~~~~~~~~~
main.cpp:46:17: warning: array subscript has type 'char' [-Wchar-subscripts]
46 | if (nod->fii[lit] == nullptr)
| ^~~
main.cpp:47:16: warning: array subscript has type 'char' [-Wchar-subscripts]
47 | nod->fii[lit] = new Trie;
| ^~~
main.cpp:49:21: warning: array subscript has type 'char' [-Wchar-subscripts]
49 | addWord(nod->fii[lit], pos+1, s);
| ^~~
main.cpp: In function 'bool delWord(Trie*, int, std::string&)':
main.cpp:55:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
55 | if (pos == s.size())
| ~~~~^~~~~~~~~~~
main.cpp:67:42: warning: array subscript has type 'char' [-Wchar-subscripts]
67 | if (nod->cuv == 0 && delWord(nod->fii[lit], pos+1, s))
| ^~~
main.cpp:68:16: warning: array subscript has type 'char' [-Wchar-subscripts]
68 | nod->fii[lit] = nullptr;
| ^~~
main.cpp: In function 'int nrApWord(Trie*, int, std::string&)':
main.cpp:81:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
81 | if (pos == s.size())
| ~~~~^~~~~~~~~~~
main.cpp:85:17: warning: array subscript has type 'char' [-Wchar-subscripts]
85 | if (nod->fii[lit])
| ^~~
main.cpp:86:32: warning: array subscript has type 'char' [-Wchar-subscripts]
86 | return nrApWord(nod->fii[lit], pos+1, s);
| ^~~
main.cpp: In function 'int lcpWord(Trie*, int, std::string&)':
main.cpp:93:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
93 | if (pos == s.size())
| ~~~~^~~~~~~~~~~
main.cpp:97:17: warning: array subscript has type 'char' [-Wchar-subscripts]
97 | if (nod->fii[lit])
| ^~~
main.cpp:98:31: warning: array subscript has type 'char' [-Wchar-subscripts]
98 | return lcpWord(nod->fii[lit], pos+1, s);
| ^~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 0ms | 184kb | OK | 5 | 5 |
| 2 | 0ms | 184kb | OK | 5 | 5 |
| 3 | 0ms | 184kb | Incorect | 0 | 0 |
| 4 | 0ms | 184kb | Incorect | 0 | 0 |
| 5 | 0ms | 184kb | Incorect | 0 | 0 |
| 6 | 0ms | 184kb | Incorect | 0 | 0 |
| 7 | 0ms | 184kb | Incorect | 0 | 0 |
| 8 | 0ms | 184kb | Incorect | 0 | 0 |
| 9 | 2ms | 577kb | Incorect | 0 | 0 |
| 10 | 5ms | 1495kb | Incorect | 0 | 0 |
| 11 | 3ms | 315kb | Incorect | 0 | 0 |
| 12 | 12ms | 2805kb | Incorect | 0 | 0 |
| 13 | 15ms | 2437kb | Incorect | 0 | 0 |
| 14 | 13ms | 819kb | Incorect | 0 | 0 |
| 15 | 17ms | 782kb | Incorect | 0 | 0 |
| 16 | 60ms | 19447kb | Incorect | 0 |
| 17 | 22ms | 360kb | Incorect | 0 | 0 |
| 18 | 58ms | 14520kb | Incorect | 0 |
| 19 | 24ms | 409kb | Incorect | 0 | 0 |
| 20 | 70ms | 25669kb | Incorect | 0 |
| Punctaj total | 10 |