Pagini recente » Cod sursa (job #1161254) | Cod sursa (job #30231) | Cod sursa (job #693202) | Cod sursa (job #913054) | Borderou de evaluare (job #2137821)
Borderou de evaluare (job #2137821)
Raport evaluator
Compilare:
user.cpp: In constructor ‘TrieNode::TrieNode(int)’:
user.cpp:19:42: warning: passing NULL to non-pointer argument 2 of ‘void* memset(void*, int, size_t)’ [-Wconversion-null]
memset(child, NULL, sizeof(child));
^
user.cpp: In function ‘void insertWord(TrieNode*, char*)’:
user.cpp:24:20: warning: NULL used in arithmetic [-Wpointer-arith]
if (word[0] != NULL) {
^
user.cpp: In function ‘bool eraseWord(TrieNode*, char*)’:
user.cpp:37:20: warning: NULL used in arithmetic [-Wpointer-arith]
if (word[0] != NULL) {
^
user.cpp:47:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int wordCnt(TrieNode*, char*)’:
user.cpp:54:20: warning: NULL used in arithmetic [-Wpointer-arith]
if (word[1] == NULL) {
^
user.cpp: In function ‘int findPrefix(TrieNode*, const char*)’:
user.cpp:69:20: warning: NULL used in arithmetic [-Wpointer-arith]
if (word[0] == NULL) {
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 0ms | 1368kb | OK | 5 | 5 |
| 2 | 0ms | 1376kb | OK | 5 | 5 |
| 3 | 0ms | 1392kb | OK | 5 | 5 |
| 4 | 0ms | 1380kb | OK | 5 | 5 |
| 5 | 0ms | 1388kb | OK | 5 | 5 |
| 6 | 0ms | 1396kb | OK | 5 | 5 |
| 7 | 4ms | 1428kb | OK | 5 | 5 |
| 8 | 4ms | 1424kb | OK | 5 | 5 |
| 9 | 8ms | 1680kb | OK | 5 | 5 |
| 10 | 16ms | 2604kb | OK | 5 | 5 |
| 11 | 16ms | 1492kb | OK | 5 | 5 |
| 12 | 36ms | 3920kb | OK | 5 | 5 |
| 13 | 40ms | 3456kb | OK | 5 | 5 |
| 14 | 36ms | 1884kb | OK | 5 | 5 |
| 15 | 44ms | 1832kb | OK | 5 | 0 |
| 16 | 76ms | Depăşit | Memory limit exceeded. | 0 |
| 17 | 56ms | 1420kb | OK | 5 | 10 |
| 18 | 120ms | 14760kb | OK | 5 |
| 19 | 52ms | 1428kb | OK | 5 | 0 |
| 20 | 76ms | Depăşit | Memory limit exceeded. | 0 |
| Punctaj total | 80 |