Borderou de evaluare (job #1733159)
Raport evaluator
Compilare:
user.cpp: In member function ‘bool nrxPositionTreap<TYPE>::insertKey(int, TYPE)’:
user.cpp:220:100: warning: no return statement in function returning non-void [-Wreturn-type]
bool insertKey( int position, TYPE key ) { insertKey( root, position, key, rand() % INT_MAX ); }
^
user.cpp: In member function ‘bool nrxPositionTreap<TYPE>::eraseKey(int)’:
user.cpp:221:100: warning: no return statement in function returning non-void [-Wreturn-type]
bool eraseKey ( int position ) { eraseKey ( root, position ); }
^
user.cpp: In function ‘int main(int, const char**)’:
user.cpp:240:48: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for( int j = 0; j < myString[i].length(); j ++ ) {
^
user.cpp:274:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if( newPos < myString[ind].length() )
^
user.cpp: In member function ‘void nrxPositionTreap<TYPE>::splitTreap(nrxPositionTreap<TYPE>::treapNode*&, int, nrxPositionTreap<TYPE>::treapNode*&, nrxPositionTreap<TYPE>::treapNode*&) [with TYPE = char]’:
user.cpp:191:63: warning: ‘randomKey’ is used uninitialized in this function [-Wuninitialized]
insertKey( myTreap1, position + 1, randomKey, INT_MAX );
^
user.cpp: In member function ‘void nrxPositionTreap<TYPE>::joinTreap(nrxPositionTreap<TYPE>::treapNode*&, nrxPositionTreap<TYPE>::treapNode*&, nrxPositionTreap<TYPE>::treapNode*&) [with TYPE = char]’:
user.cpp:197:111: warning: ‘randomKey’ is used uninitialized in this function [-Wuninitialized]
TYPE randomKey; treapNode *auxRoot = new treapNode( randomKey, INT_MIN, myHash[0], myTreap1, myTreap2 );
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 192ms | 1844kb | OK | 10 |
2 | 88ms | 1580kb | OK | 10 |
3 | 1676ms | 7124kb | OK | 10 |
4 | 1484ms | 6332kb | OK | 10 |
5 | 1392ms | 6068kb | OK | 10 |
6 | 1288ms | 6332kb | OK | 10 |
7 | 1364ms | 6596kb | OK | 10 |
8 | 1604ms | 6860kb | OK | 10 |
9 | 1316ms | 6332kb | OK | 10 |
10 | 1272ms | 6596kb | OK | 10 |
Punctaj total | 100 |