Pagini recente » Borderou de evaluare (job #1593897) | Borderou de evaluare (job #1806352) | Borderou de evaluare (job #1153943) | Borderou de evaluare (job #1844619) | Borderou de evaluare (job #1668714)
Borderou de evaluare (job #1668714)
Raport evaluator
Compilare:
user.cpp: In constructor ‘trie::trie()’:
user.cpp:35:30: warning: passing NULL to non-pointer argument 2 of ‘void* memset(void*, int, size_t)’ [-Wconversion-null]
memset(fiu,NULL,sizeof(fiu));
^
user.cpp: In function ‘int search_trie(trie*, int)’:
user.cpp:99:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(nod->fiu[ch] != NULL && diferit(nod, pos))
^
user.cpp:100:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
nr+=(nod->fiu[ch])->trec;
^
user.cpp:108:16: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(nod->fiu[ch] == NULL) return 0;
^
user.cpp:109:32: warning: array subscript has type ‘char’ [-Wchar-subscripts]
return search_trie(nod->fiu[ch], pos+1);
^
user.cpp: In function ‘bool diferit(trie*, int)’:
user.cpp:116:16: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(nod->fiu[ch] == NULL) return 1;
^
user.cpp:117:28: warning: array subscript has type ‘char’ [-Wchar-subscripts]
return diferit(nod->fiu[ch],pos+1);
^
user.cpp: In function ‘void insert_trie(trie*, int)’:
user.cpp:122:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(pos == s.size())
^
user.cpp:126:16: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(nod->fiu[ch] == NULL) {
^
user.cpp:127:14: warning: array subscript has type ‘char’ [-Wchar-subscripts]
nod->fiu[ch]=new trie;
^
user.cpp:130:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
insert_trie(nod->fiu[ch], pos+1);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 16ms | 4524kb | Incorect | 0 |
2 | 4ms | 1484kb | Incorect | 0 |
3 | 8ms | 2628kb | Incorect | 0 |
4 | 128ms | 27628kb | Incorect | 0 |
5 | 268ms | 53668kb | Incorect | 0 |
6 | 368ms | 110468kb | Killed by signal 11(SIGSEGV). | 0 |
7 | 596ms | 185740kb | Killed by signal 11(SIGSEGV). | 0 |
8 | 616ms | 164672kb | Killed by signal 11(SIGSEGV). | 0 |
9 | 644ms | 172700kb | Killed by signal 11(SIGSEGV). | 0 |
10 | 648ms | 172716kb | Killed by signal 11(SIGSEGV). | 0 |
Punctaj total | 0 |