Pagini recente » Borderou de evaluare (job #2874877) | Borderou de evaluare (job #2594956) | Borderou de evaluare (job #1356972) | Borderou de evaluare (job #1353322) | Borderou de evaluare (job #1572496)
Borderou de evaluare (job #1572496)
Raport evaluator
Compilare:
user.cpp: In constructor ‘state_machine::tree::tree()’:
user.cpp:28:23: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
cnt_words = NULL;
^
user.cpp:30:26: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
cnt_children = NULL;
^
user.cpp:31: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::tree*, char*)’:
user.cpp:43:24: warning: NULL used in arithmetic [-Wpointer-arith]
if( *String == NULL ) {
^
user.cpp: In member function ‘int state_machine::delete_word(state_machine::tree*, char*)’:
user.cpp:59:24: warning: NULL used in arithmetic [-Wpointer-arith]
if( *String == NULL ) Node -> cnt_words --; else
^
user.cpp:65:53: warning: NULL used in arithmetic [-Wpointer-arith]
if( Node != Root && Node -> cnt_children == NULL && Node -> cnt_words == NULL ) {
^
user.cpp:65:82: warning: NULL used in arithmetic [-Wpointer-arith]
if( Node != Root && Node -> cnt_children == NULL && Node -> cnt_words == NULL ) {
^
user.cpp: In member function ‘int state_machine::count_word(state_machine::tree*, char*)’:
user.cpp:75:24: warning: NULL used in arithmetic [-Wpointer-arith]
if( *String == NULL )
^
user.cpp: In member function ‘int state_machine::longest_prefix(state_machine::tree*, char*, int)’:
user.cpp:86:24: warning: NULL used in arithmetic [-Wpointer-arith]
if( *String == NULL )
^
user.cpp: In member function ‘void state_machine::reset_machine(state_machine::tree*)’:
user.cpp:97: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::tree*, char*)’:
user.cpp:141:24: warning: NULL used in arithmetic [-Wpointer-arith]
if( *String == NULL )
^
user.cpp: In member function ‘void state_machine::build_partial_sum(state_machine::tree*)’:
user.cpp:158: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::tree*, char*)’:
user.cpp:168:24: warning: NULL used in arithmetic [-Wpointer-arith]
if( *String == NULL )
^
user.cpp: In function ‘int main()’:
user.cpp:214:39: 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 |
Punctaj/grupa |
1 | 0ms | 240kb | Incorect | 0 | 0 |
2 | 0ms | 244kb | Incorect | 0 |
3 | 0ms | 316kb | Incorect | 0 |
4 | 0ms | 588kb | Incorect | 0 |
5 | 4ms | 1376kb | Incorect | 0 |
6 | 12ms | 3092kb | Incorect | 0 |
7 | 36ms | 8256kb | Incorect | 0 |
8 | 60ms | 13136kb | Incorect | 0 |
9 | 60ms | 13132kb | Incorect | 0 |
10 | 60ms | 13140kb | Incorect | 0 |
Punctaj total | 0 |