Pagini recente » Borderou de evaluare (job #2987512) | Borderou de evaluare (job #1579460) | Borderou de evaluare (job #2549177) | Borderou de evaluare (job #1149636) | Borderou de evaluare (job #2470506)
Borderou de evaluare (job #2470506)
Raport evaluator
Compilare:
main.cpp: In constructor 'Aho::Node::Node()':
main.cpp:14:33: warning: passing NULL to non-pointer argument 2 of 'void* memset(void*, int, size_t)' [-Wconversion-null]
memset(son, NULL, sizeof(son));
^
main.cpp: In member function 'void Aho::add(Aho::Node*, std::__cxx11::string&, int, int)':
main.cpp:23:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(pos == str.size()) {
~~~~^~~~~~~~~~~~~
main.cpp:28:19: warning: array subscript has type 'char' [-Wchar-subscripts]
if(nod -> son[ch] == NULL) {
^
main.cpp:29:17: warning: array subscript has type 'char' [-Wchar-subscripts]
nod -> son[ch] = new Node;
^
main.cpp:31:20: warning: array subscript has type 'char' [-Wchar-subscripts]
add(nod -> son[ch], str, pos + 1, id);
^
main.cpp: In member function 'void Aho::bfs()':
main.cpp:41:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(p < Q.size()) {
~~^~~~~~~~~~
main.cpp:44:21: warning: array subscript has type 'char' [-Wchar-subscripts]
if(nod -> son[ch] == NULL) continue;
^
main.cpp:46:39: warning: array subscript has type 'char' [-Wchar-subscripts]
while(aux != root && aux -> son[ch] == NULL) {
^
main.cpp:49:21: warning: array subscript has type 'char' [-Wchar-subscripts]
if(aux -> son[ch] == NULL || aux == nod) {
^
main.cpp:50:19: warning: array subscript has type 'char' [-Wchar-subscripts]
nod -> son[ch] -> fail = aux;
^
main.cpp:53:19: warning: array subscript has type 'char' [-Wchar-subscripts]
nod -> son[ch] -> fail = aux -> son[ch];
^
main.cpp:53:44: warning: array subscript has type 'char' [-Wchar-subscripts]
nod -> son[ch] -> fail = aux -> son[ch];
^
main.cpp:55:30: warning: array subscript has type 'char' [-Wchar-subscripts]
Q.push_back(nod -> son[ch]);
^
main.cpp: In member function 'void Aho::solve(std::__cxx11::string&)':
main.cpp:64:38: warning: array subscript has type 'char' [-Wchar-subscripts]
while(nod != root && nod -> son[ch] == NULL) {
^
main.cpp:67:20: warning: array subscript has type 'char' [-Wchar-subscripts]
if(nod -> son[ch] != NULL) nod = nod -> son[ch];
^
main.cpp:67:50: warning: array subscript has type 'char' [-Wchar-subscripts]
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 2ms | 131kb | OK | 5 |
| 2 | 2ms | 131kb | OK | 5 |
| 3 | 2ms | 131kb | OK | 5 |
| 4 | 2ms | 131kb | OK | 5 |
| 5 | 2ms | 131kb | OK | 5 |
| 6 | 13ms | 794kb | OK | 5 |
| 7 | 24ms | 1318kb | OK | 5 |
| 8 | 24ms | 1449kb | OK | 5 |
| 9 | 25ms | 1712kb | OK | 5 |
| 10 | 23ms | 1318kb | OK | 5 |
| 11 | 27ms | 1318kb | OK | 5 |
| 12 | 23ms | 1449kb | OK | 5 |
| 13 | 10ms | 794kb | OK | 5 |
| 14 | 13ms | 1318kb | OK | 5 |
| 15 | 15ms | 1318kb | OK | 5 |
| 16 | 16ms | 1318kb | OK | 5 |
| 17 | 16ms | 1318kb | OK | 5 |
| 18 | 18ms | 1318kb | OK | 5 |
| 19 | 23ms | 1581kb | OK | 5 |
| 20 | 53ms | 2629kb | OK | 5 |
| Punctaj total | 100 |