Pagini recente » Borderou de evaluare (job #83103) | Borderou de evaluare (job #1838379) | Borderou de evaluare (job #1630043) | Borderou de evaluare (job #1636194) | Borderou de evaluare (job #2470503)
Borderou de evaluare (job #2470503)
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 | 925kb | OK | 5 |
7 | 23ms | 1318kb | OK | 5 |
8 | 24ms | 1974kb | OK | 5 |
9 | 25ms | 2236kb | OK | 5 |
10 | 22ms | 1581kb | OK | 5 |
11 | 25ms | 1318kb | OK | 5 |
12 | 22ms | 1843kb | OK | 5 |
13 | 10ms | 794kb | OK | 5 |
14 | 14ms | 1318kb | OK | 5 |
15 | 15ms | 1318kb | OK | 5 |
16 | 16ms | 1449kb | OK | 5 |
17 | 17ms | 1318kb | OK | 5 |
18 | 18ms | 1318kb | OK | 5 |
19 | 23ms | 2105kb | OK | 5 |
20 | 101ms | 3940kb | Time limit exceeded | 0 |
Punctaj total | 95 |