Pagini recente » Cod sursa (job #2514607) | Cod sursa (job #1339533) | Cei mai harnici utilizatori infoarena | Clasament arhiva | Borderou de evaluare (job #1569093)
Borderou de evaluare (job #1569093)
Raport evaluator
Compilare:
user.cpp: In constructor ‘state_machine::trie::trie()’:
user.cpp:32:23: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
cnt_words = NULL;
^
user.cpp:33:26: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
cnt_children = NULL;
^
user.cpp:34: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:46: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:62:24: warning: NULL used in arithmetic [-Wpointer-arith]
if( *String == NULL ) Node -> cnt_words --; else
^
user.cpp:66:34: warning: NULL used in arithmetic [-Wpointer-arith]
if( Node -> cnt_words == NULL && Node -> cnt_children == NULL && Node != Root ) {
^
user.cpp:66:66: warning: NULL used in arithmetic [-Wpointer-arith]
if( Node -> cnt_words == NULL && Node -> cnt_children == NULL && Node != Root ) {
^
user.cpp: In member function ‘int state_machine::count_word(state_machine::trie*, char*)’:
user.cpp:76: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:87: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:98: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:142: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:159: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:169:24: warning: NULL used in arithmetic [-Wpointer-arith]
if( *String == NULL )
^
user.cpp: In function ‘int main()’:
user.cpp:216:40: 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 | 4ms | 1404kb | OK | 10 |
2 | 12ms | 1316kb | OK | 10 |
3 | 32ms | 1448kb | OK | 10 |
4 | 232ms | 23368kb | OK | 10 |
5 | 392ms | 37720kb | OK | 10 |
6 | 220ms | 23156kb | OK | 10 |
7 | 444ms | 45404kb | OK | 10 |
8 | 240ms | 23460kb | OK | 10 |
9 | 36ms | 4028kb | OK | 10 |
10 | 12ms | 2412kb | OK | 10 |
Punctaj total | 100 |