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