Borderou de evaluare (job #1609032)

Utilizator alex2kamebossPuscasu Alexandru alex2kameboss Data 22 februarie 2016 16:03:54
Problema Reactivi Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

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
10ms440kbOK1010
20ms436kbOK1010
30ms448kbOK1010
44ms496kbOK1010
50ms468kbOK1060
60ms440kbOK10
74ms500kbOK10
80ms448kbOK10
94ms504kbOK10
100ms436kbOK10
Punctaj total100

Ceva nu functioneaza?