Pagini recente » Borderou de evaluare (job #611083) | Borderou de evaluare (job #2844780) | Borderou de evaluare (job #1038329) | Borderou de evaluare (job #2626630) | Borderou de evaluare (job #2559817)
Borderou de evaluare (job #2559817)
Raport evaluator
Compilare:
main.cpp: In function 'bool comp(punct, punct)':
main.cpp:14:109: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
return ((a.y-miny)*(b.x-minx) < (b.y-miny)*(a.x-minx) || (a.y-miny)*(b.x-minx) == (b.y-miny)*(a.x-minx) && (a.x-minx)*(a.x-minx) + (a.y-miny)*(a.y-miny) > (b.x-minx)*(b.x-minx) + (b.y-miny)*(b.y-miny));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:27:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if(P[i].y < miny || P[i].y == miny && P[i].x < minx) miny = P[i].y, minx=P[i].x;
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | Corect | 10 |
2 | 2ms | 131kb | Corect | 10 |
3 | 49ms | 655kb | Corect | 10 |
4 | 49ms | 655kb | Corect | 10 |
5 | 49ms | 655kb | Corect | 10 |
6 | 285ms | 3592kb | Corect | 10 |
7 | 309ms | 3670kb | Corect | 10 |
8 | 306ms | 3670kb | Corect | 10 |
9 | 307ms | 3670kb | Corect | 10 |
10 | 283ms | 3670kb | Corect | 10 |
Punctaj total | 100 |