Borderou de evaluare (job #1713154)

Utilizator StarGold2Emanuel Nrx StarGold2 Data 4 iunie 2016 20:54:34
Problema SETI Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In constructor ‘trie_node::trie_node()’: user.cpp:15:22: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null] cnt_children = NULL; cnt_words = NULL; ^ user.cpp:15:40: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null] cnt_children = NULL; cnt_words = NULL; ^ user.cpp:16:43: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null] back_node = NULL; cnt_occurrences = NULL; ^ user.cpp: In function ‘void insert_word(trie_node*, char*)’: user.cpp:26: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
10ms356kbOK10
20ms336kbOK10
30ms460kbOK10
416ms1412kbOK10
520ms3744kbOK10
620ms3776kbOK10
724ms3812kbOK10
8Depăşit57940kbTime limit exceeded.0
9Depăşit65368kbTime limit exceeded.0
1060ms5916kbOK10
Punctaj total80

Ceva nu functioneaza?