Borderou de evaluare (job #1713165)

Utilizator StarGold2Emanuel Nrx StarGold2 Data 4 iunie 2016 21:25:58
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: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 ‘int count_occurrences(trie_node*, char*)’: user.cpp:41:18: warning: NULL used in arithmetic [-Wpointer-arith] if( *word == NULL ) ^ user.cpp: In function ‘void build_occurrences(trie_node*, char*)’: user.cpp:82: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:97:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( int i = 0; i < node -> front_node.size(); i ++ ) { ^ user.cpp: In function ‘int main(int, const char**)’: user.cpp:122:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen( "seti.in" , "r", stdin ); ^ user.cpp:123:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen( "seti.out", "w", stdout ); ^ user.cpp:125:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf( "%d", &string_len ); ^ user.cpp:128:50: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf( "%s", my_string + ((i - 1) << 6) ); ^ user.cpp:130:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf( "%d", &nr_words ); ^ user.cpp:134:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf( "%s", word ); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms380kbOK10
20ms332kbOK10
30ms368kbOK10
412ms836kbOK10
516ms4396kbOK10
620ms4432kbOK10
720ms4456kbOK10
8144msDepăşitMemory limit exceeded.0
9136msDepăşitMemory limit exceeded.0
1052ms6308kbOK10
Punctaj total80

Ceva nu functioneaza?