Borderou de evaluare (job #3122868)

Utilizator Matoka26Dogaru Mihail Danut Matoka26 Data 20 aprilie 2023 22:02:08
Problema Arbori binari de cautare echilibrati Status done
Runda arhiva-test Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In member function 'bool Treap::operator==(const Treap&)': main.cpp:35:38: warning: self-comparison always evaluates to true [-Wtautological-compare] 35 | if(this->key = key && this->prio == prio && this->left == left && this->right == right) return 1; | ~~~~~~~~~~ ^~ ~~~~ main.cpp:35:60: warning: self-comparison always evaluates to true [-Wtautological-compare] 35 | if(this->key = key && this->prio == prio && this->left == left && this->right == right) return 1; | ~~~~~~~~~~ ^~ ~~~~ main.cpp:35:83: warning: self-comparison always evaluates to true [-Wtautological-compare] 35 | if(this->key = key && this->prio == prio && this->left == left && this->right == right) return 1; | ~~~~~~~~~~~ ^~ ~~~~~ main.cpp:35:18: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 35 | if(this->key = key && this->prio == prio && this->left == left && this->right == right) return 1; | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'std::ostream& operator<<(std::ostream&, const Treap&)': main.cpp:40:29: warning: passing NULL to non-pointer argument 1 of 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' [-Wconversion-null] 40 | if(gol == obj){out<<NULL; return out;} | ^~~~ In file included from /usr/include/c++/12.2.1/istream:39, from /usr/include/c++/12.2.1/fstream:38, from main.cpp:2: /usr/include/c++/12.2.1/ostream:166:23: note: declared here 166 | operator<<(long __n) | ~~~~~^~~ main.cpp: In function 'void afisareSplit(Treap*&, int)': main.cpp:193:28: warning: overflow in conversion from 'float' to 'int' changes value from '+Inff' to '2147483647' [-Woverflow] 193 | rad = inserare(rad,key,INFINITY); | ^~~~~~~~ main.cpp: In function 'void split(Treap*&, Treap*&, Treap*&, int)': main.cpp:211:32: warning: overflow in conversion from 'float' to 'int' changes value from '+Inff' to '2147483647' [-Woverflow] 211 | rad = inserare(rad , key , INFINITY); | ^~~~~~~~ main.cpp: In function 'Treap* join(Treap*&, Treap*&)': main.cpp:222:36: warning: overflow in conversion from 'float' to 'int' changes value from '+Inff' to '2147483647' [-Woverflow] 222 | Treap *aux = new Treap(key,INFINITY,st,dr); | ^~~~~~~~ main.cpp: In function 'Treap* cautare(Treap*&, int)': main.cpp:60:1: warning: control reaches end of non-void function [-Wreturn-type] 60 | } | ^ main.cpp: In function 'int maximN(Treap*&, int)': main.cpp:253:1: warning: control reaches end of non-void function [-Wreturn-type] 253 | } | ^ main.cpp: In function 'int minimN(Treap*&, int)': main.cpp:268:1: warning: control reaches end of non-void function [-Wreturn-type] 268 | } | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms405kbKilled by Signal 110
29ms405kbKilled by Signal 110
34ms405kbKilled by Signal 110
46ms405kbKilled by Signal 110
54ms401kbKilled by Signal 110
66ms405kbKilled by Signal 110
74ms401kbKilled by Signal 110
84ms405kbKilled by Signal 110
94ms405kbKilled by Signal 110
104ms401kbKilled by Signal 110
110ms401kbKilled by Signal 110
120ms405kbKilled by Signal 110
130ms401kbKilled by Signal 110
140ms401kbKilled by Signal 110
150ms405kbKilled by Signal 110
160ms401kbKilled by Signal 110
170ms401kbKilled by Signal 110
1811ms409kbKilled by Signal 110
199ms405kbKilled by Signal 110
209ms405kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?