Pagini recente » Borderou de evaluare (job #747885) | Borderou de evaluare (job #193967) | Borderou de evaluare (job #1811268) | Borderou de evaluare (job #2103932) | Borderou de evaluare (job #2371567)
Borderou de evaluare (job #2371567)
Raport evaluator
Compilare:
main.cpp: In constructor 'Trie::Trie()':
main.cpp:27: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 function 'void add(Trie*, int, const string&)':
main.cpp:35:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(pos == s.size())
~~~~^~~~~~~~~~~
main.cpp:39:25: warning: array subscript has type 'char' [-Wchar-subscripts]
if(node -> son[c] == NULL)
^
main.cpp:40:26: warning: array subscript has type 'char' [-Wchar-subscripts]
node -> son[c] = new Trie();
^
main.cpp:42:26: warning: array subscript has type 'char' [-Wchar-subscripts]
add(node -> son[c], pos + 1, s);
^
main.cpp: In function 'void del(Trie*, int, const string&)':
main.cpp:48:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(pos == s.size())
~~~~^~~~~~~~~~~
main.cpp:52:26: warning: array subscript has type 'char' [-Wchar-subscripts]
del(node -> son[c], pos + 1, s);
^
main.cpp: In function 'int query2(Trie*, int, const string&)':
main.cpp:57:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(pos == s.size())
~~~~^~~~~~~~~~~
main.cpp:61:21: warning: array subscript has type 'char' [-Wchar-subscripts]
if(node -> son[c] == NULL)
^
main.cpp:63:32: warning: array subscript has type 'char' [-Wchar-subscripts]
return query2(node -> son[c], pos + 1, s);
^
main.cpp: In function 'int query3(Trie*, int, const string&)':
main.cpp:67:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(pos == s.size())
~~~~^~~~~~~~~~~
main.cpp:71:21: warning: array subscript has type 'char' [-Wchar-subscripts]
if(node -> son[c] == NULL)
^
main.cpp:74:21: warning: array subscript has type 'char' [-Wchar-subscripts]
if(node -> son[c] -> pref == 0)
^
main.cpp:76:32: warning: array subscript has type 'char' [-Wchar-subscripts]
return query3(node -> son[c], pos + 1, s);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 2ms | 131kb | OK | 5 | 5 |
| 2 | 2ms | 131kb | OK | 5 | 5 |
| 3 | 3ms | 131kb | OK | 5 | 5 |
| 4 | 3ms | 131kb | OK | 5 | 5 |
| 5 | 3ms | 131kb | OK | 5 | 5 |
| 6 | 4ms | 131kb | OK | 5 | 5 |
| 7 | 6ms | 262kb | OK | 5 | 5 |
| 8 | 8ms | 262kb | OK | 5 | 5 |
| 9 | 13ms | 524kb | OK | 5 | 5 |
| 10 | 20ms | 1441kb | OK | 5 | 5 |
| 11 | 23ms | 262kb | OK | 5 | 5 |
| 12 | 43ms | 2883kb | OK | 5 | 5 |
| 13 | 49ms | 2359kb | OK | 5 | 5 |
| 14 | 47ms | 655kb | OK | 5 | 5 |
| 15 | 56ms | 655kb | OK | 5 | 10 |
| 16 | 143ms | 20316kb | OK | 5 |
| 17 | 62ms | 262kb | OK | 5 | 10 |
| 18 | 135ms | 15204kb | OK | 5 |
| 19 | 65ms | 262kb | OK | 5 | 0 |
| 20 | 93ms | 20496kb | Memory limit exceeded | 0 |
| Punctaj total | 90 |