Pagini recente » Borderou de evaluare (job #2424091) | Borderou de evaluare (job #1541530) | Borderou de evaluare (job #2628526) | Borderou de evaluare (job #861559) | Borderou de evaluare (job #3124110)
Borderou de evaluare (job #3124110)
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 |
1 | 9ms | 405kb | Killed by Signal 11 | 0 |
2 | 4ms | 401kb | Killed by Signal 11 | 0 |
3 | 4ms | 405kb | Killed by Signal 11 | 0 |
4 | 4ms | 401kb | Killed by Signal 11 | 0 |
5 | 4ms | 405kb | Killed by Signal 11 | 0 |
6 | 6ms | 405kb | Killed by Signal 11 | 0 |
7 | 4ms | 401kb | Killed by Signal 11 | 0 |
8 | 4ms | 401kb | Killed by Signal 11 | 0 |
9 | 4ms | 401kb | Killed by Signal 11 | 0 |
10 | 4ms | 409kb | Killed by Signal 11 | 0 |
11 | 0ms | 401kb | Killed by Signal 11 | 0 |
12 | 0ms | 401kb | Killed by Signal 11 | 0 |
13 | 0ms | 405kb | Killed by Signal 11 | 0 |
14 | 0ms | 401kb | Killed by Signal 11 | 0 |
15 | 0ms | 405kb | Killed by Signal 11 | 0 |
16 | 0ms | 409kb | Killed by Signal 11 | 0 |
17 | 0ms | 401kb | Killed by Signal 11 | 0 |
18 | 11ms | 401kb | Killed by Signal 11 | 0 |
19 | 4ms | 405kb | Killed by Signal 11 | 0 |
20 | 4ms | 421kb | Killed by Signal 11 | 0 |
Punctaj total | 0 |