Pagini recente » Borderou de evaluare (job #444178) | Borderou de evaluare (job #2454846) | Borderou de evaluare (job #3268500) | Borderou de evaluare (job #2961724) | Borderou de evaluare (job #2570815)
Borderou de evaluare (job #2570815)
Raport evaluator
Compilare:
main.cpp: In constructor 'Node::Node()':
main.cpp:18:38: 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::ins(Node*, int, std::__cxx11::string&, int)':
main.cpp:32:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(pos == 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:40:30: warning: array subscript has type 'char' [-Wchar-subscripts]
ins(nod -> son[ch], pos + 1, str, id);
^
main.cpp: In member function 'void AHO::bfs()':
main.cpp:49:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(pos < Q.size()) {
~~~~^~~~~~~~~~
main.cpp: In member function 'void AHO::solve(std::__cxx11::string&)':
main.cpp:70:47: warning: array subscript has type 'char' [-Wchar-subscripts]
while(nod != root && nod -> son[ch] == NULL) {
^
main.cpp:73:29: warning: array subscript has type 'char' [-Wchar-subscripts]
if(nod -> son[ch] != NULL) {
^
main.cpp:74:36: warning: array subscript has type 'char' [-Wchar-subscripts]
nod = nod -> son[ch];
^
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 | 24ms | 1716kb | OK | 5 |
10 | 23ms | 1318kb | OK | 5 |
11 | 26ms | 1318kb | OK | 5 |
12 | 22ms | 1449kb | OK | 5 |
13 | 8ms | 794kb | OK | 5 |
14 | 11ms | 1318kb | OK | 5 |
15 | 14ms | 1318kb | OK | 5 |
16 | 16ms | 1318kb | OK | 5 |
17 | 16ms | 1318kb | OK | 5 |
18 | 16ms | 1318kb | OK | 5 |
19 | 22ms | 1581kb | OK | 5 |
20 | 47ms | 2629kb | OK | 5 |
Punctaj total | 100 |