Borderou de evaluare (job #3124110)

Utilizator JuliaG03Julia Grasu JuliaG03 Data 26 aprilie 2023 22:33:34
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:34:45: warning: self-comparison always evaluates to true [-Wtautological-compare] 34 | {if( this->key=key && this->priority==priority && this->stanga==stanga && this->dreapta==dreapta) return 1; | ~~~~~~~~~~~~~~^~~~~~~~~~ main.cpp:34:71: warning: self-comparison always evaluates to true [-Wtautological-compare] 34 | {if( this->key=key && this->priority==priority && this->stanga==stanga && this->dreapta==dreapta) return 1; | ~~~~~~~~~~~~^~~~~~~~ main.cpp:34:96: warning: self-comparison always evaluates to true [-Wtautological-compare] 34 | {if( this->key=key && this->priority==priority && this->stanga==stanga && this->dreapta==dreapta) return 1; | ~~~~~~~~~~~~~^~~~~~~~~ main.cpp:34:23: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 34 | {if( this->key=key && this->priority==priority && this->stanga==stanga && this->dreapta==dreapta) return 1; | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'std::ostream& operator<<(std::ostream&, const Treap&)': main.cpp:40:32: 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(emptyy == obj){out<<NULL; return out;} | ^~~~ In file included from /usr/include/c++/12.2.1/iostream:39, from main.cpp:1: /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:210:39: warning: overflow in conversion from 'float' to 'int' changes value from '+Inff' to '2147483647' [-Woverflow] 210 | {radacina = inserare(radacina,key,INFINITY); | ^~~~~~~~ main.cpp: In function 'void split(Treap*&, Treap*&, Treap*&, int)': main.cpp:220:42: warning: overflow in conversion from 'float' to 'int' changes value from '+Inff' to '2147483647' [-Woverflow] 220 | radacina = inserare(radacina , key , INFINITY); | ^~~~~~~~ main.cpp: In function 'Treap* join(Treap*&, Treap*&)': main.cpp:231:36: warning: overflow in conversion from 'float' to 'int' changes value from '+Inff' to '2147483647' [-Woverflow] 231 | Treap *aux = new Treap(key,INFINITY,stanga,dreapta); | ^~~~~~~~ main.cpp: In function 'Treap* cautare(Treap*&, int)': main.cpp:60:5: warning: control reaches end of non-void function [-Wreturn-type] 60 | } | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
19ms405kbKilled by Signal 110
24ms401kbKilled by Signal 110
34ms405kbKilled by Signal 110
44ms401kbKilled by Signal 110
54ms405kbKilled by Signal 110
66ms405kbKilled by Signal 110
74ms401kbKilled by Signal 110
84ms401kbKilled by Signal 110
94ms401kbKilled by Signal 110
104ms409kbKilled by Signal 110
110ms401kbKilled by Signal 110
120ms401kbKilled by Signal 110
130ms405kbKilled by Signal 110
140ms401kbKilled by Signal 110
150ms405kbKilled by Signal 110
160ms409kbKilled by Signal 110
170ms401kbKilled by Signal 110
1811ms401kbKilled by Signal 110
194ms405kbKilled by Signal 110
204ms421kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?