Pagini recente » Borderou de evaluare (job #2991445) | Borderou de evaluare (job #1673928) | Borderou de evaluare (job #267397) | Borderou de evaluare (job #2168345) | Borderou de evaluare (job #1568442)
Borderou de evaluare (job #1568442)
Raport evaluator
Compilare:
user.cpp: In constructor ‘state_machine::trie::trie()’:
user.cpp:38:23: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
cnt_words = NULL;
^
user.cpp:39:26: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
cnt_children = NULL;
^
user.cpp:40:29: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
cnt_occurrences = NULL;
^
user.cpp: In member function ‘void state_machine::insert_word(state_machine::trie*, char*)’:
user.cpp:52:24: warning: NULL used in arithmetic [-Wpointer-arith]
if( *String == NULL ) {
^
user.cpp: In member function ‘int state_machine::delete_word(state_machine::trie*, char*)’:
user.cpp:68:24: warning: NULL used in arithmetic [-Wpointer-arith]
if( *String == NULL ) Node -> cnt_words --; else
^
user.cpp:72:50: warning: NULL used in arithmetic [-Wpointer-arith]
if( Node != Root && Node -> cnt_words == NULL && Node -> cnt_children == NULL ) {
^
user.cpp:72:82: warning: NULL used in arithmetic [-Wpointer-arith]
if( Node != Root && Node -> cnt_words == NULL && Node -> cnt_children == NULL ) {
^
user.cpp: In member function ‘int state_machine::count_word(state_machine::trie*, char*)’:
user.cpp:82:24: warning: NULL used in arithmetic [-Wpointer-arith]
if( *String == NULL )
^
user.cpp: In member function ‘int state_machine::longest_prefix(state_machine::trie*, char*, int)’:
user.cpp:93:24: warning: NULL used in arithmetic [-Wpointer-arith]
if( *String == NULL )
^
user.cpp: In member function ‘void state_machine::reset_machine(state_machine::trie*)’:
user.cpp:103:33: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
Node -> cnt_occurrences = NULL;
^
user.cpp: In member function ‘void state_machine::build_occurrences(state_machine::trie*, char*)’:
user.cpp:147:24: warning: NULL used in arithmetic [-Wpointer-arith]
if( *String == NULL )
^
user.cpp: In member function ‘void state_machine::build_partial_sum(state_machine::trie*)’:
user.cpp:164:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for( int i = 0; i < Node -> front_node.size(); i ++ ) {
^
user.cpp: In member function ‘int state_machine::count_occurrences(state_machine::trie*, char*)’:
user.cpp:174:24: warning: NULL used in arithmetic [-Wpointer-arith]
if( *String == NULL )
^
user.cpp: In function ‘int main()’:
user.cpp:219:46: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 300kb | OK | 5 |
2 | 0ms | 332kb | OK | 5 |
3 | 0ms | 316kb | OK | 5 |
4 | 0ms | 336kb | OK | 5 |
5 | 0ms | 296kb | OK | 5 |
6 | 12ms | 1016kb | OK | 5 |
7 | 24ms | 1316kb | OK | 5 |
8 | 24ms | 1916kb | OK | 5 |
9 | 24ms | 2140kb | OK | 5 |
10 | 24ms | 1580kb | OK | 5 |
11 | 24ms | 1268kb | OK | 5 |
12 | 20ms | 1796kb | OK | 5 |
13 | 8ms | 800kb | OK | 5 |
14 | 8ms | 844kb | OK | 5 |
15 | 12ms | 1432kb | OK | 5 |
16 | 16ms | 1540kb | OK | 5 |
17 | 16ms | 1540kb | OK | 5 |
18 | 16ms | 1300kb | OK | 5 |
19 | 20ms | 2084kb | OK | 5 |
20 | 80ms | 3920kb | OK | 5 |
Punctaj total | 100 |