Pagini recente » Borderou de evaluare (job #2649319) | Borderou de evaluare (job #2494118) | Borderou de evaluare (job #1317215) | Cod sursa (job #809199) | Borderou de evaluare (job #2137810)
Borderou de evaluare (job #2137810)
Raport evaluator
Compilare:
user.cpp: In function ‘void insertWord(TrieNode*, const char*)’:
user.cpp:26:20: warning: NULL used in arithmetic [-Wpointer-arith]
if (word[0] != NULL) {
^
user.cpp:29:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (node->child[c] == nullptr) {
^
user.cpp:30:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
node->child[c] = new TrieNode(1);
^
user.cpp:32:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
node->child[c]->wordCount++;
^
user.cpp:35:33: warning: array subscript has type ‘char’ [-Wchar-subscripts]
insertWord(node->child[c], word + 1);
^
user.cpp: In function ‘bool eraseWord(TrieNode*, const char*)’:
user.cpp:40:20: warning: NULL used in arithmetic [-Wpointer-arith]
if (word[0] != NULL) {
^
user.cpp:42:32: warning: array subscript has type ‘char’ [-Wchar-subscripts]
eraseWord(node->child[c], word + 1);
^
user.cpp:51:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int wordCnt(TrieNode*, const char*)’:
user.cpp:55:35: warning: array subscript has type ‘char’ [-Wchar-subscripts]
TrieNode* next = node->child[c];
^
user.cpp:61:20: warning: NULL used in arithmetic [-Wpointer-arith]
if (word[1] == NULL) {
^
user.cpp: In function ‘int findPrefix(TrieNode*, const char*)’:
user.cpp:76:20: warning: NULL used in arithmetic [-Wpointer-arith]
if (word[0] == NULL) {
^
user.cpp:81:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (node->child[c] == nullptr) {
^
user.cpp:85:40: warning: array subscript has type ‘char’ [-Wchar-subscripts]
return 1 + findPrefix(node->child[c], word + 1);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 0ms | 1496kb | OK | 5 | 5 |
| 2 | 0ms | 1508kb | Incorect | 0 | 0 |
| 3 | 0ms | 1528kb | Incorect | 0 | 0 |
| 4 | 0ms | 1512kb | Incorect | 0 | 0 |
| 5 | 0ms | 1516kb | Incorect | 0 | 0 |
| 6 | 0ms | 1532kb | Incorect | 0 | 0 |
| 7 | 4ms | 1564kb | Incorect | 0 | 0 |
| 8 | 4ms | 1560kb | Incorect | 0 | 0 |
| 9 | 12ms | 2020kb | Killed by signal 6(SIGABRT). | 0 | 0 |
| 10 | 12ms | 2748kb | Incorect | 0 | 0 |
| 11 | 16ms | 1624kb | Incorect | 0 | 0 |
| 12 | 28ms | 4052kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
| 13 | 36ms | 3592kb | Incorect | 0 | 0 |
| 14 | 36ms | 2016kb | Incorect | 0 | 0 |
| 15 | 40ms | 1968kb | Incorect | 0 | 0 |
| 16 | 72ms | Depăşit | Memory limit exceeded. | 0 |
| 17 | 28ms | 1552kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
| 18 | 116ms | 14928kb | Incorect | 0 |
| 19 | 52ms | 1560kb | Incorect | 0 | 0 |
| 20 | 76ms | Depăşit | Memory limit exceeded. | 0 |
| Punctaj total | 5 |