Pagini recente » Borderou de evaluare (job #645649) | Borderou de evaluare (job #785263) | Borderou de evaluare (job #38915) | Borderou de evaluare (job #1608047) | Borderou de evaluare (job #3122872)
Borderou de evaluare (job #3122872)
Raport evaluator
Compilare:
main.cpp: In member function 'bool Treap::operator==(const Treap&)':
main.cpp:38:38: warning: self-comparison always evaluates to true [-Wtautological-compare]
38 | if(this->key = key && this->prio == prio && this->left == left && this->right == right) return 1;
| ~~~~~~~~~~ ^~ ~~~~
main.cpp:38:60: warning: self-comparison always evaluates to true [-Wtautological-compare]
38 | if(this->key = key && this->prio == prio && this->left == left && this->right == right) return 1;
| ~~~~~~~~~~ ^~ ~~~~
main.cpp:38:83: warning: self-comparison always evaluates to true [-Wtautological-compare]
38 | if(this->key = key && this->prio == prio && this->left == left && this->right == right) return 1;
| ~~~~~~~~~~~ ^~ ~~~~~
main.cpp:38:18: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
38 | 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:43: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]
43 | if(gol == obj){out<<NULL; return out;}
| ^~~~
In file included from /usr/include/c++/12.2.1/iostream:39,
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:196:28: warning: overflow in conversion from 'float' to 'int' changes value from '+Inff' to '2147483647' [-Woverflow]
196 | rad = inserare(rad,key,INFINITY);
| ^~~~~~~~
main.cpp: In function 'void split(Treap*&, Treap*&, Treap*&, int)':
main.cpp:214:32: warning: overflow in conversion from 'float' to 'int' changes value from '+Inff' to '2147483647' [-Woverflow]
214 | rad = inserare(rad , key , INFINITY);
| ^~~~~~~~
main.cpp: In function 'Treap* join(Treap*&, Treap*&)':
main.cpp:225:36: warning: overflow in conversion from 'float' to 'int' changes value from '+Inff' to '2147483647' [-Woverflow]
225 | Treap *aux = new Treap(key,INFINITY,st,dr);
| ^~~~~~~~
main.cpp: In function 'Treap* cautare(Treap*&, int)':
main.cpp:63:1: warning: control reaches end of non-void function [-Wreturn-type]
63 | }
| ^
main.cpp: In function 'int maximN(Treap*&, int)':
main.cpp:256:1: warning: control reaches end of non-void function [-Wreturn-type]
256 | }
| ^
main.cpp: In function 'int minimN(Treap*&, int)':
main.cpp:271:1: warning: control reaches end of non-void function [-Wreturn-type]
271 | }
| ^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 11ms | 405kb | Killed by Signal 11 | 0 |
2 | 9ms | 405kb | Killed by Signal 11 | 0 |
3 | 9ms | 401kb | Killed by Signal 11 | 0 |
4 | 9ms | 397kb | Killed by Signal 11 | 0 |
5 | 9ms | 405kb | Killed by Signal 11 | 0 |
6 | 9ms | 401kb | Killed by Signal 11 | 0 |
7 | 9ms | 413kb | Killed by Signal 11 | 0 |
8 | 9ms | 401kb | Killed by Signal 11 | 0 |
9 | 9ms | 401kb | Killed by Signal 11 | 0 |
10 | 9ms | 405kb | Killed by Signal 11 | 0 |
11 | 0ms | 409kb | Killed by Signal 11 | 0 |
12 | 0ms | 401kb | Killed by Signal 11 | 0 |
13 | 0ms | 405kb | Killed by Signal 11 | 0 |
14 | 0ms | 405kb | Killed by Signal 11 | 0 |
15 | 0ms | 401kb | Killed by Signal 11 | 0 |
16 | 0ms | 397kb | Killed by Signal 11 | 0 |
17 | 0ms | 397kb | Killed by Signal 11 | 0 |
18 | 0ms | 405kb | Killed by Signal 11 | 0 |
19 | 0ms | 401kb | Killed by Signal 11 | 0 |
20 | 0ms | 401kb | Killed by Signal 11 | 0 |
Punctaj total | 0 |