Pagini recente » Borderou de evaluare (job #2438550) | Borderou de evaluare (job #964188) | Borderou de evaluare (job #2190114) | Borderou de evaluare (job #2442586) | Borderou de evaluare (job #1568444)
Borderou de evaluare (job #1568444)
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 | 304kb | OK | 5 |
2 | 0ms | 328kb | OK | 5 |
3 | 0ms | 320kb | OK | 5 |
4 | 0ms | 336kb | OK | 5 |
5 | 0ms | 296kb | OK | 5 |
6 | 12ms | 1016kb | OK | 5 |
7 | 24ms | 1316kb | OK | 5 |
8 | 24ms | 1912kb | OK | 5 |
9 | 24ms | 2136kb | OK | 5 |
10 | 24ms | 1576kb | OK | 5 |
11 | 24ms | 1268kb | OK | 5 |
12 | 20ms | 1792kb | OK | 5 |
13 | 8ms | 800kb | OK | 5 |
14 | 8ms | 844kb | OK | 5 |
15 | 12ms | 1440kb | OK | 5 |
16 | 16ms | 1544kb | OK | 5 |
17 | 16ms | 1548kb | OK | 5 |
18 | 12ms | 1304kb | OK | 5 |
19 | 24ms | 2084kb | OK | 5 |
20 | 80ms | 3924kb | OK | 5 |
Punctaj total | 100 |