Pagini recente » Cod sursa (job #693564) | Cod sursa (job #107971) | Borderou de evaluare (job #1588298) | Cod sursa (job #829337) | Borderou de evaluare (job #1609032)
Borderou de evaluare (job #1609032)
Raport evaluator
Compilare:
user.cpp: In function ‘bool cmp(frig, frig)’:
user.cpp:17:32: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
return a.x<b.x || a.x==b.x && a.y>b.y;
^
user.cpp: In function ‘void frigidere(int)’:
user.cpp:25:35: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(subst[i].x<=f[j].x && subst[i].y<=f[j].y || f[j].x<=subst[i].y && f[j].y>=subst[i].x || f[j].x>=subst[i].x && f[j].y<=subst[i].y || f[j].x>=subst[i].x && f[j].y<=subst[i].y){
^
user.cpp:25:123: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(subst[i].x<=f[j].x && subst[i].y<=f[j].y || f[j].x<=subst[i].y && f[j].y>=subst[i].x || f[j].x>=subst[i].x && f[j].y<=subst[i].y || f[j].x>=subst[i].x && f[j].y<=subst[i].y){
^
user.cpp:25:167: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(subst[i].x<=f[j].x && subst[i].y<=f[j].y || f[j].x<=subst[i].y && f[j].y>=subst[i].x || f[j].x>=subst[i].x && f[j].y<=subst[i].y || f[j].x>=subst[i].x && f[j].y<=subst[i].y){
^
user.cpp: In function ‘void citire(int)’:
user.cpp:12:51: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n", &subst[i].x, &subst[i].y);
^
user.cpp: In function ‘int main()’:
user.cpp:39:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("reactivi.in","r",stdin);
^
user.cpp:40:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("reactivi.out","w",stdout);
^
user.cpp:41:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &n);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 0ms | 440kb | OK | 10 | 10 |
| 2 | 0ms | 436kb | OK | 10 | 10 |
| 3 | 0ms | 448kb | OK | 10 | 10 |
| 4 | 4ms | 496kb | OK | 10 | 10 |
| 5 | 0ms | 468kb | OK | 10 | 60 |
| 6 | 0ms | 440kb | OK | 10 |
| 7 | 4ms | 500kb | OK | 10 |
| 8 | 0ms | 448kb | OK | 10 |
| 9 | 4ms | 504kb | OK | 10 |
| 10 | 0ms | 436kb | OK | 10 |
| Punctaj total | 100 |