Pagini recente » Borderou de evaluare (job #1625237) | Borderou de evaluare (job #3041827) | Borderou de evaluare (job #1901640) | Borderou de evaluare (job #1017040) | Borderou de evaluare (job #2371558)
Borderou de evaluare (job #2371558)
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 | 21ms | 1441kb | OK | 5 | 5 |
| 11 | 23ms | 262kb | OK | 5 | 5 |
| 12 | 44ms | 3014kb | OK | 5 | 5 |
| 13 | 50ms | 2490kb | OK | 5 | 5 |
| 14 | 47ms | 786kb | OK | 5 | 5 |
| 15 | 56ms | 786kb | OK | 5 | 0 |
| 16 | 109ms | 20496kb | Memory limit exceeded | 0 |
| 17 | 63ms | 262kb | OK | 5 | 10 |
| 18 | 134ms | 16384kb | OK | 5 |
| 19 | 66ms | 393kb | OK | 5 | 0 |
| 20 | 105ms | 20496kb | Memory limit exceeded | 0 |
| Punctaj total | 80 |