Pagini recente » Borderou de evaluare (job #2703098) | Borderou de evaluare (job #1306837) | Borderou de evaluare (job #2568555) | Borderou de evaluare (job #1185364) | Borderou de evaluare (job #1713157)
Borderou de evaluare (job #1713157)
Raport evaluator
Compilare:
user.cpp: In constructor ‘trie_node::trie_node()’:
user.cpp:16:22: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
cnt_children = NULL; cnt_words = NULL;
^
user.cpp:16:40: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
cnt_children = NULL; cnt_words = NULL;
^
user.cpp:17:43: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
back_node = NULL; cnt_occurrences = NULL;
^
user.cpp: In function ‘trie_node* insert_word(trie_node*, char*)’:
user.cpp:27:18: warning: NULL used in arithmetic [-Wpointer-arith]
if( *word == NULL ) {
^
user.cpp: In function ‘bool erase_word(trie_node*, char*)’:
user.cpp:41:18: warning: NULL used in arithmetic [-Wpointer-arith]
if( *word == NULL ) node -> cnt_words --; else
^
user.cpp:45:49: warning: NULL used in arithmetic [-Wpointer-arith]
if( node != root && node -> cnt_children == NULL && node -> cnt_words == NULL ) {
^
user.cpp:45:78: warning: NULL used in arithmetic [-Wpointer-arith]
if( node != root && node -> cnt_children == NULL && node -> cnt_words == NULL ) {
^
user.cpp: In function ‘bool find_word(trie_node*, char*)’:
user.cpp:54:18: warning: NULL used in arithmetic [-Wpointer-arith]
if( *word == NULL )
^
user.cpp: In function ‘int count_word(trie_node*, char*)’:
user.cpp:64:18: warning: NULL used in arithmetic [-Wpointer-arith]
if( *word == NULL )
^
user.cpp: In function ‘int count_occurrences(trie_node*, char*)’:
user.cpp:74:18: warning: NULL used in arithmetic [-Wpointer-arith]
if( *word == NULL )
^
user.cpp: In function ‘int longest_prefix(trie_node*, char*, int)’:
user.cpp:84:18: warning: NULL used in arithmetic [-Wpointer-arith]
if( *word == NULL )
^
user.cpp: In function ‘void reset_machine(trie_node*)’:
user.cpp:94:29: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
node -> cnt_occurrences = NULL;
^
user.cpp: In function ‘void build_occurrences(trie_node*, char*)’:
user.cpp:138:34: warning: NULL used in arithmetic [-Wpointer-arith]
for( *word = *word; *word != NULL; word ++ ) {
^
user.cpp: In function ‘void build_partial_sum(trie_node*)’:
user.cpp:153:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 364kb | OK | 10 |
| 2 | 0ms | 320kb | OK | 10 |
| 3 | 0ms | 348kb | OK | 10 |
| 4 | 12ms | 752kb | OK | 10 |
| 5 | 16ms | 3644kb | OK | 10 |
| 6 | 20ms | 3680kb | OK | 10 |
| 7 | 20ms | 3704kb | OK | 10 |
| 8 | Depăşit | 57276kb | Time limit exceeded. | 0 |
| 9 | Depăşit | 64704kb | Time limit exceeded. | 0 |
| 10 | 56ms | 5248kb | OK | 10 |
| Punctaj total | 80 |