Pagini recente » Borderou de evaluare (job #2561874) | Borderou de evaluare (job #2323501) | Borderou de evaluare (job #1219424) | Borderou de evaluare (job #2323752) | Borderou de evaluare (job #1608703)
Borderou de evaluare (job #1608703)
Raport evaluator
Compilare:
user.cpp: In function ‘bool cmp(frig, frig)’:
user.cpp:17:34: 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:31: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:31: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:31: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:45: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:46: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:47: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 | 440kb | OK | 10 | 10 |
3 | 0ms | 448kb | OK | 10 | 10 |
4 | 4ms | 492kb | OK | 10 | 10 |
5 | 4ms | 492kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
6 | 0ms | 436kb | OK | 10 |
7 | 4ms | 500kb | OK | 10 |
8 | 0ms | 452kb | OK | 10 |
9 | 8ms | 500kb | OK | 10 |
10 | 0ms | 436kb | OK | 10 |
Punctaj total | 40 |