Borderou de evaluare (job #1713170)

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

Raport evaluator

Compilare: user.cpp: In constructor ‘trie_node::trie_node()’: 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 ‘trie_node* insert_word(trie_node*, char*)’: user.cpp:26:18: warning: NULL used in arithmetic [-Wpointer-arith] if( *word == NULL ) { ^ user.cpp: In function ‘int count_occurrences(trie_node*, char*)’: user.cpp:38:18: warning: NULL used in arithmetic [-Wpointer-arith] if( *word == NULL ) ^ user.cpp: In function ‘void reset_machine(trie_node*)’: user.cpp:48: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:92: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:107: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:137: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:138: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:140:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf( "%d", &string_len ); ^ user.cpp:143: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:145:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf( "%d", &nr_words ); ^ user.cpp:149: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
10ms384kbOK10
20ms308kbKilled by signal 11(SIGSEGV).0
30ms340kbKilled by signal 11(SIGSEGV).0
48ms864kbKilled by signal 6(SIGABRT).0
58ms3488kbKilled by signal 6(SIGABRT).0
68ms3520kbKilled by signal 6(SIGABRT).0
78ms3548kbKilled by signal 6(SIGABRT).0
8120ms50596kbKilled by signal 6(SIGABRT).0
9136ms57336kbKilled by signal 6(SIGABRT).0
1048ms4964kbOK10
Punctaj total20

Ceva nu functioneaza?