Pagini recente » Borderou de evaluare (job #952330) | Borderou de evaluare (job #1277727) | Borderou de evaluare (job #1847500) | Borderou de evaluare (job #3208878) | Borderou de evaluare (job #1713165)
Borderou de evaluare (job #1713165)
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 |
1 | 0ms | 380kb | OK | 10 |
2 | 0ms | 332kb | OK | 10 |
3 | 0ms | 368kb | OK | 10 |
4 | 12ms | 836kb | OK | 10 |
5 | 16ms | 4396kb | OK | 10 |
6 | 20ms | 4432kb | OK | 10 |
7 | 20ms | 4456kb | OK | 10 |
8 | 144ms | Depăşit | Memory limit exceeded. | 0 |
9 | 136ms | Depăşit | Memory limit exceeded. | 0 |
10 | 52ms | 6308kb | OK | 10 |
Punctaj total | 80 |