Borderou de evaluare (job #2416353)

Utilizator PopoviciRobertPopovici Robert PopoviciRobert Data 27 aprilie 2019 13:55:48
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:20:42: 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:31:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(p == str.size()) { ~~^~~~~~~~~~~~~ main.cpp:37:29: warning: array subscript has type 'char' [-Wchar-subscripts] if(nod -> son[ch] == NULL) { ^ main.cpp:38:30: warning: array subscript has type 'char' [-Wchar-subscripts] nod -> son[ch] = new Node; ^ main.cpp:41:30: warning: array subscript has type 'char' [-Wchar-subscripts] add(nod -> son[ch], str, p + 1, id); ^ main.cpp: In member function 'void Aho::make_fail()': main.cpp:61:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(p < Q.size()) { ~~^~~~~~~~~~ main.cpp: In member function 'void Aho::compute(std::__cxx11::string&)': main.cpp:100:47: warning: array subscript has type 'char' [-Wchar-subscripts] while(nod != root && nod -> son[ch] == NULL) { ^ main.cpp:104:29: warning: array subscript has type 'char' [-Wchar-subscripts] if(nod -> son[ch] != NULL) { ^ main.cpp:105:36: warning: array subscript has type 'char' [-Wchar-subscripts] nod = nod -> son[ch]; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK5
22ms131kbOK5
32ms131kbOK5
42ms131kbOK5
52ms131kbOK5
613ms925kbOK5
723ms1318kbOK5
824ms1974kbOK5
925ms2236kbOK5
1022ms1581kbOK5
1124ms1318kbOK5
1222ms1843kbOK5
139ms794kbOK5
1411ms1318kbOK5
1515ms1318kbOK5
1615ms1449kbOK5
1717ms1318kbOK5
1815ms1318kbOK5
1922ms2105kbOK5
20103ms3940kbTime limit exceeded0
Punctaj total95

Ceva nu functioneaza?