Borderou de evaluare (job #2470503)

Utilizator PopoviciRobertPopovici Robert PopoviciRobert Data 9 octombrie 2019 12:20:19
Problema Aho-Corasick Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 95

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
12ms131kbOK5
22ms131kbOK5
32ms131kbOK5
42ms131kbOK5
52ms131kbOK5
613ms925kbOK5
723ms1318kbOK5
824ms1974kbOK5
925ms2236kbOK5
1022ms1581kbOK5
1125ms1318kbOK5
1222ms1843kbOK5
1310ms794kbOK5
1414ms1318kbOK5
1515ms1318kbOK5
1616ms1449kbOK5
1717ms1318kbOK5
1818ms1318kbOK5
1923ms2105kbOK5
20101ms3940kbTime limit exceeded0
Punctaj total95

Ceva nu functioneaza?