Pagini recente » Borderou de evaluare (job #698450) | Borderou de evaluare (job #996741) | Borderou de evaluare (job #1079459) | Borderou de evaluare (job #2757445) | Borderou de evaluare (job #1713175)
Borderou de evaluare (job #1713175)
Raport evaluator
Compilare:
user.cpp: In constructor ‘trie_node::trie_node()’:
user.cpp:17:43: warning: converting to non-pointer type ‘short unsigned int’ from NULL [-Wconversion-null]
back_node = NULL; cnt_occurrences = NULL;
^
user.cpp: In function ‘trie_node* insert_word(trie_node*, char*)’:
user.cpp:28: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_back_edges(trie_node*)’:
user.cpp:57:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for( int j = 0; j < node -> pos.size(); j ++ ) {
^
user.cpp: In function ‘void build_occurrences(trie_node*, char*)’:
user.cpp:81: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:96: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:126: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:127: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:129:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf( "%d", &string_len );
^
user.cpp:132: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:134:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf( "%d", &nr_words );
^
user.cpp:138: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 | 364kb | OK | 10 |
2 | 0ms | 316kb | OK | 10 |
3 | 0ms | 352kb | OK | 10 |
4 | 12ms | 772kb | OK | 10 |
5 | 16ms | 3908kb | OK | 10 |
6 | 20ms | 3940kb | OK | 10 |
7 | 20ms | 3972kb | OK | 10 |
8 | 388ms | 62312kb | OK | 10 |
9 | 172ms | Depăşit | Memory limit exceeded. | 0 |
10 | 52ms | 5636kb | OK | 10 |
Punctaj total | 90 |